1

我在 .vimrc 中有以下代码

" to eliminate the effect of the line 1560 in taglist.vim 
if v:version >= 700
         nnoremap <buffer> <silent> t
                     \ 
         nnoremap <buffer> <silent> <C-t>
                     \                                                                                                                                                                                        
         endif

该命令执行它应该执行的操作。但是,该命令在 Vim 启动时也给了我以下错误

No mapping found
No mapping found

您如何消除键盘快捷键,这样您就不会在 Taglist 中收到消息,但您仍然可以使用默认的“T”在 Dvorak 中向上浏览?

4

1 回答 1

1

删除它。我不使用 taglist,但是您在帖子中给出的示例什么也没做。它应该将某些东西映射到某些东西,但是缺少右侧,即应该将某些东西映射到“t”和“Ct”,但是没有定义某些东西。

或者,您可以这样做:

:silent nnoremap <buffer> <silent> t (and analoguous for the second line)

(映射保留但不会显示消息)

于 2009-05-09T19:03:58.410 回答