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 recommen开发者_如何学Pythond making so that this is easier to use?
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.
You can move between windows using Ctrl+w and the movement keys hjkl
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.
<C-w>p
lets you go back to the previous window.
And I recommend Xavier T.'s configuration.
精彩评论