问题:在 Vim 的 Taglist 中向上移动 "t"
当我不在 TagList 中时,移动键 DHTN 在 Vim 中工作。
no h j
no t k
no n l
no s :
no S :
no j d
no J D
no l n
no L N
no - $
no _ ^
no N
no ; z
no T L
no P P
no p p
如何在 TagList 中也启用移动键“t”?
问题:在 Vim 的 Taglist 中向上移动 "t"
当我不在 TagList 中时,移动键 DHTN 在 Vim 中工作。
no h j
no t k
no n l
no s :
no S :
no j d
no J D
no l n
no L N
no - $
no _ ^
no N
no ; z
no T L
no P P
no p p
如何在 TagList 中也启用移动键“t”?
可以通过将以下内容添加到您的 .vimrc 来解决该问题
if v:version >= 700
nnoremap <buffer> <silent> t
\
nnoremap <buffer> <silent> <C-t>
\
endif
对伟大的问题的回应:
我通过将以下内容添加到我的 .vimrc 重新映射密钥失败
if v:version >= 700
nnoremap <buffer> <silent> l
\ :call <SID>Tlist_Window_Jump_To_Tag('checktab')<CR>
nnoremap <buffer> <silent> <C-l>
\ :call <SID>Tlist_Window_Jump_To_Tag('newtab')<CR>
endif
您将如何进行重新映射?
问题是标签列表已经为这些键定义了非常具体的操作,因此重新绑定它们已经将功能移到了它之上,并且不能用于转移责任。可能还有另一种方法,但您可以在 :1560 和 :1562 行编辑 taglist.vim
nnoremap <buffer> <silent> t
nnoremap <buffer> <silent> <C-t>
将“t”更改为您想要的字母,也许是“l”。您还将在此区域中找到所有其他键绑定。虽然不需要这些更改或受这些更改影响,但如果您从 :535 行开始更改其他绑定,您也可以更新帮助消息