Problem: to move upwards in Vim's Taglist by "t"
问题:在Vim的Taglist中向上移动“t”
The movement keys DHTN work in Vim when I am not in TagList.
当我不在TagList中时,移动键DHTN在Vim中工作。
I have the following in my .vimrc
我的.vimrc中有以下内容
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
How can you enable the movement key "t" also in TagList?
如何在TagList中启用移动键“t”?
2 个解决方案
#1
The problem is that Tag List has defined very specific action to these keys, so rebinding them has moved functionality on top of it and can not be used to shift responsibility. There might be another way, but you can edit taglist.vim at line :1560 and :1562
问题是Tag List已经为这些键定义了非常具体的操作,因此重新绑定它们已经在其上移动了功能,并且不能用于转移责任。可能还有另一种方法,但您可以在第1560行和第1562行编辑taglist.vim
nnoremap <buffer> <silent> t
nnoremap <buffer> <silent> <C-t>
change 't' to the letter you want, maybe 'l'. You will also find all the other key bindings in this area. While not needed or affected by these changes, you can also update the help message if you change other bindings starting at line :535
将't'改为你想要的字母,也许'我'。您还可以在此区域中找到所有其他键绑定。虽然不需要或不受这些更改的影响,但如果您更改从第535行开始的其他绑定,也可以更新帮助消息
#2
The problem can be solved by adding the following to your .vimrc
通过在.vimrc中添加以下内容可以解决该问题
if v:version >= 700
nnoremap <buffer> <silent> t
\
nnoremap <buffer> <silent> <C-t>
\
endif
Response to Great's question:
对Great的问题的回应:
I remaped the key unsuccessfully by adding the following to my .vimrc
我通过将以下内容添加到我的.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
How would you do the remap?
你会怎么做重映射?
#1
The problem is that Tag List has defined very specific action to these keys, so rebinding them has moved functionality on top of it and can not be used to shift responsibility. There might be another way, but you can edit taglist.vim at line :1560 and :1562
问题是Tag List已经为这些键定义了非常具体的操作,因此重新绑定它们已经在其上移动了功能,并且不能用于转移责任。可能还有另一种方法,但您可以在第1560行和第1562行编辑taglist.vim
nnoremap <buffer> <silent> t
nnoremap <buffer> <silent> <C-t>
change 't' to the letter you want, maybe 'l'. You will also find all the other key bindings in this area. While not needed or affected by these changes, you can also update the help message if you change other bindings starting at line :535
将't'改为你想要的字母,也许'我'。您还可以在此区域中找到所有其他键绑定。虽然不需要或不受这些更改的影响,但如果您更改从第535行开始的其他绑定,也可以更新帮助消息
#2
The problem can be solved by adding the following to your .vimrc
通过在.vimrc中添加以下内容可以解决该问题
if v:version >= 700
nnoremap <buffer> <silent> t
\
nnoremap <buffer> <silent> <C-t>
\
endif
Response to Great's question:
对Great的问题的回应:
I remaped the key unsuccessfully by adding the following to my .vimrc
我通过将以下内容添加到我的.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
How would you do the remap?
你会怎么做重映射?