Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 VIM 中使用 taglist 并且我重新映射了 F12 以便它会调用 :TaglistToggle
nnoremap <F12> :TaglistToggle
有没有一种方法可以让我按 F12,它会打开/关闭列表,而无需按回车键。
目前 F12 只会将命令 TaglistToggle 放在命令缓冲区中,然后我必须按回车键来执行命令。
谢谢
在它后面放<CR>(解释为回车):
<CR>
nnoremap <F12> :TaglistToggle<CR>
您也可以在命令中包含击键:
nnoremap <F12> :TaglistToggle<enter>
I am following the