Re: open quickfix windows after csope and jump

2013-03-21 Thread Christian Brabandt
Hi Gary! On Do, 21 Mär 2013, Gary Johnson wrote: > > And it didn't work. I also tried normal "", normal! "\", > > and normal! "". None of them worked. Does anybody have any > > other ideas? > > I think that should have worked. > > I grep'd for a pattern, executed ":copen" and tried various > ":

Re: open quickfix windows after csope and jump

2013-03-21 Thread Gary Johnson
On 2013-03-21, FlashBurn wrote: > On Thursday, March 21, 2013 1:24:12 PM UTC-4, Gary Johnson wrote: > > However, I also skimmed quickfix.txt and found that the command > > ".cc" should also work, and it worked for me, so try > > > > .cc > > > > where you now have > > > > normal "\" > G

Re: open quickfix windows after csope and jump

2013-03-21 Thread FlashBurn
On Thursday, March 21, 2013 1:24:12 PM UTC-4, Gary Johnson wrote: > On 2013-03-20, FlashBurn wrote: > > > On Tuesday, March 19, 2013 5:54:23 PM UTC-4, Christian Brabandt wrote: > > > > > > You need 2 commands: > > > > > > > > :copen > > > > > > > > :norm! "\" > > > > > > > > > > I tr

Re: open quickfix windows after csope and jump

2013-03-21 Thread Gary Johnson
On 2013-03-20, FlashBurn wrote: > On Tuesday, March 19, 2013 5:54:23 PM UTC-4, Christian Brabandt wrote: > > You need 2 commands: > > > > :copen > > > > :norm! "\" > > > > I tried the following: > function! CscopeFind(action, word) > try > exe ':cs f '.a:action.' '.a:word > copen >

Re: open quickfix windows after csope and jump

2013-03-21 Thread FlashBurn
On Thursday, March 21, 2013 11:02:08 AM UTC-4, Ben Fritz wrote: > On Wednesday, March 20, 2013 9:30:11 AM UTC-5, FlashBurn wrote: > > > > I found a solution to this problem. All I needed to do is the following: > > > > > > > > exe 'normal! copen" > > > > > > This should NOT work. This should

Re: open quickfix windows after csope and jump

2013-03-21 Thread Ben Fritz
On Wednesday, March 20, 2013 9:30:11 AM UTC-5, FlashBurn wrote: > > I found a solution to this problem. All I needed to do is the following: > > > > exe 'normal! copen" > > This should NOT work. This should beep at you and fail to do anything, because from normal mode, it will: c - start

Re: open quickfix windows after csope and jump

2013-03-20 Thread FlashBurn
On Wednesday, March 20, 2013 9:54:47 AM UTC-4, FlashBurn wrote: > On Tuesday, March 19, 2013 5:54:23 PM UTC-4, Christian Brabandt wrote: > > > Hi FlashBurn! > > > > > > > > > > > > On Di, 19 M�r 2013, FlashBurn wrote: > > > > > > > > > > > > > I have the following function > > >

Re: open quickfix windows after csope and jump

2013-03-20 Thread FlashBurn
On Tuesday, March 19, 2013 5:54:23 PM UTC-4, Christian Brabandt wrote: > Hi FlashBurn! > > > > On Di, 19 M�r 2013, FlashBurn wrote: > > > > > I have the following function > > > > > > 1 function! CscopeFind(action, word) > > > 2 try > > > 3exe ':cs f '.a:action.' '.a:word > > > 4

Re: open quickfix windows after csope and jump

2013-03-19 Thread Christian Brabandt
Hi FlashBurn! On Di, 19 Mär 2013, FlashBurn wrote: > I have the following function > > 1 function! CscopeFind(action, word) > 2 try > 3exe ':cs f '.a:action.' '.a:word > 4exe ':copen' > 5 catch > 6echohl WarningMsg | echo 'Can not find '.a:word.' with querytype as > '.a:action.'.'

open quickfix windows after csope and jump

2013-03-19 Thread FlashBurn
I have the following function 1 function! CscopeFind(action, word) 2 try 3exe ':cs f '.a:action.' '.a:word 4exe ':copen' 5 catch 6echohl WarningMsg | echo 'Can not find '.a:word.' with querytype as '.a:action.'.' | echohl None 7 endtry 8 endfunction The idea is open quickfix windo