I use :CSearch to bring me to the declaration of an item under the cursor. How do I get back the the previous location? I'm looking for something similar too "CTRL-T" with ctags. Or something similar too "ALT-left-arrow" In the Eclipse GUI.
> I use :CSearch to bring me to the declaration of an item under the cursor. > How do I get back the the previous location? I'm looking for something > similar too "CTRL-T" with ctags. Or something similar too "ALT-left-arrow" > In the Eclipse GUI.
> Thanks.
Sounds like you want vim's Ctrl-O (:help CTRL-O)... does that do what you want?
CTRL-O and CTRL-I previously worked well for me in 1.7.2. However starting in 1.7.3 and continuing in 1.7.4, when I use CSearch to search for an element under the cursor, and it finds the element in the *current file*, the jump position is not remembered. Unfortunately, this means CTRL-O will *not * jump back to the previous cursor position.
Of note, I have the following VIM global variables defined: let g:EclimCSearchSingleResult = "edit" let g:EclimLocateFileDefaultAction = "edit" let g:EclimCHierarchyDefaultAction = "edit"
> CTRL-O and CTRL-I previously worked well for me in 1.7.2. However starting > in 1.7.3 and continuing in 1.7.4, when I use CSearch to search for an > element under the cursor, and it finds the element in the *current file*, the > jump position is not remembered. Unfortunately, this means CTRL-O will *not
> * jump back to the previous cursor position.
> Of note, I have the following VIM global variables defined:
> let g:EclimCSearchSingleResult = "edit"
> let g:EclimLocateFileDefaultAction = "edit"
> let g:EclimCHierarchyDefaultAction = "edit"
This apparently broke when eclim switched to using json for all
responses. I just checked in a fix[1] for it.
On Tuesday, May 15, 2012 10:06:20 AM UTC-4, Eric Van Dewoestine wrote:
> On 2012-05-14 09:49:36, Aman Sawrup wrote: > > CTRL-O and CTRL-I previously worked well for me in 1.7.2. However > starting > > in 1.7.3 and continuing in 1.7.4, when I use CSearch to search for an > > element under the cursor, and it finds the element in the *current > file*, the > > jump position is not remembered. Unfortunately, this means CTRL-O will > *not > > * jump back to the previous cursor position.
> > Of note, I have the following VIM global variables defined: > > let g:EclimCSearchSingleResult = "edit" > > let g:EclimLocateFileDefaultAction = "edit" > > let g:EclimCHierarchyDefaultAction = "edit"
> This apparently broke when eclim switched to using json for all > responses. I just checked in a fix[1] for it.