Hi FlashBurn! On Di, 19 Mär 2013, FlashBurn wrote:
> I have the following function > > 1 function! CscopeFind(action, word) > 2 try > 3 exe ':cs f '.a:action.' '.a:word > 4 exe ':copen<cr>' > 5 catch > 6 echohl WarningMsg | echo 'Can not find '.a:word.' with querytype as > '.a:action.'.' | echohl None > 7 endtry > 8 endfunction > > The idea is open quickfix window and jump to the given result. I finally > realized that I cannot do > > exe ':copen<cr>' > > because of a <cr> > You need 2 commands: :copen :norm! "\<Cr>" regards, Christian -- Aus Murphy's Gesetze: Allradantrieb bedeutet, daß man erst dort steckenbleibt, wo der Abschleppwagen nicht hinkommt. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
