Is there a way to "tag back"?

45 views
Skip to first unread message

Aman Sawrup

unread,
Feb 1, 2012, 4:39:26 PM2/1/12
to eclim...@googlegroups.com
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.

Eric Van Dewoestine

unread,
Feb 1, 2012, 5:53:29 PM2/1/12
to eclim...@googlegroups.com

Sounds like you want vim's Ctrl-O (:help CTRL-O)... does that do what
you want?

--
eric

Aman Sawrup

unread,
Feb 1, 2012, 9:14:29 PM2/1/12
to eclim...@googlegroups.com
CTRL-O works great!  Thanks Eric.

Aman Sawrup

unread,
May 14, 2012, 12:49:36 PM5/14/12
to eclim...@googlegroups.com
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"

On Wednesday, February 1, 2012 9:14:29 PM UTC-5, Aman Sawrup wrote:
CTRL-O works great!  Thanks Eric.

Eric Van Dewoestine

unread,
May 15, 2012, 10:06:20 AM5/15/12
to eclim...@googlegroups.com
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.

[1] https://github.com/ervandew/eclim/commit/8cc757d961eff376c85bff4115c5c4ab446b591a

--
eric

Aman Sawrup

unread,
May 15, 2012, 11:36:52 AM5/15/12
to eclim...@googlegroups.com
Thanks Eric!  I tried applying the changes manually to ./eclim/autoload/eclim/lang.vim, however, doing so made CSearch not work at all.

I've just checked out the master branch; will try re-building and re-installing.
Reply all
Reply to author
Forward
0 new messages