Reputation: 32986
I installed taglist and ctags for vim in OSX. It looks cool, but it's hard to use. For one thing, after I select a tag in the taglist window, it jumps to the code, but then I don't know how to get back to the taglist window to select another place to go to. How do you do that? What are some changes you recommend making so that this is easier to use?
Upvotes: 3
Views: 2046
Reputation: 196566
<C-w>p
lets you go back to the previous window.
And I recommend Xavier T.'s configuration.
Upvotes: 0
Reputation: 42228
I am using the following configuration in my .vimrc :
" Taglist plugin mapping
noremap <silent> <Leader>t :TlistToggle<CR>
" Taglist plugin config
let Tlist_Use_Right_Window = 1
let Tlist_Inc_Winwidth = 0
let Tlist_WinWidth = 45
let Tlist_GainFocus_On_ToggleOpen= 1
let Tlist_Ctags_Cmd = 'ctags'
let Tlist_Show_One_File = 1
You can switch back and forth between code and list quickly with <Leader>t
to display or hide the taglist window.
The other options are personal preferences only.
Upvotes: 3
Reputation: 2221
You can move between windows using Ctrl+w and the movement keys hjkl
Upvotes: 1
Reputation: 993125
To go back after jumping to a tag, use Ctrl+T. For more information on tag navigation, see Browsing programs with tags on the Vim wiki.
Upvotes: 0