I have the following code in .vimrc
我在.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
The command does what it should do. However, the command gives also me the following error at Vim's startup
该命令执行它应该做的事情。但是,该命令在Vim的启动时也给出了以下错误
No mapping found
No mapping found
How can you eliminate the keyboard shortcut, such that you do not get the message in Taglist but you can still use the default "T" for browsing up in Dvorak?
如何消除键盘快捷键,这样你就不会在Taglist中收到消息,但你仍然可以使用默认的“T”来浏览Dvorak?
1 个解决方案
#1
1
Delete it. I don't use taglist, but the example you gave in your post does nothing. It is supposed to map something to something, but the right side is missing, i.e. something is supposed to being mapped to "t" and "C-t", but that something isn't defined.
删除它。我不使用taglist,但你在帖子中给出的例子什么也没做。它应该将某些东西映射到某个东西,但是右侧缺失,即某些东西应该映射到“t”和“C-t”,但是没有定义某些东西。
Or, you can do this:
或者,你可以这样做:
:silent nnoremap <buffer> <silent> t (and analoguous for the second line)
(mapping stays but the message will not be displayed)
(映射保留但不显示消息)
#1
1
Delete it. I don't use taglist, but the example you gave in your post does nothing. It is supposed to map something to something, but the right side is missing, i.e. something is supposed to being mapped to "t" and "C-t", but that something isn't defined.
删除它。我不使用taglist,但你在帖子中给出的例子什么也没做。它应该将某些东西映射到某个东西,但是右侧缺失,即某些东西应该映射到“t”和“C-t”,但是没有定义某些东西。
Or, you can do this:
或者,你可以这样做:
:silent nnoremap <buffer> <silent> t (and analoguous for the second line)
(mapping stays but the message will not be displayed)
(映射保留但不显示消息)