[英]why when i press enter my vim(gvim) show ^M in normal mode?
there is a strange Phenomenon of my vim(gvim). 我的vim(gvim)有一个奇怪的现象。
just as i said in title, when i press enter, it'll show ^M at lower right. 就像我在标题中说的那样,当我按下回车键时,它会在右下方显示^ M. and disappear after about 1sec, then it'll act as it should be.
并在大约1秒后消失,然后它将按照应有的方式行动。 as if it's the first charactor of some "multi-charactor" command.
好像它是某个“多字符”命令的第一个字符。
here are some lines in my vimrc. 这是我的vimrc中的一些行。
au FileType * nnoremap <buffer> <CR> <C-]>
let mapleader = "\\<space>"
set encoding=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
set fileencodings=utf-8,ucs-bom,chinese
set ffs=unix,dos,mac
can someone tell me how to fix it? 有谁能告诉我如何解决它?
thanks for Pinpin. 感谢Pinpin。 but my problem occurs in normal mode.
但我的问题发生在正常模式。
thanks for any help :) 谢谢你的帮助 :)
For internal reasons , <CM>
is the same as <CR>
(or <Enter>
). 由于内部原因 ,
<CM>
与<CR>
(或<Enter>
)相同。 The reason that Vim briefly displays the key in the bottom right corner is that it is waiting for further keys (and you have :set showcmd
), because you have a mapping that begins with Enter . Vim在右下角短暂显示密钥的原因是它正在等待更多密钥(并且你有
:set showcmd
),因为你有一个以Enter开头的映射 。
:nmap <CR>
(or :nmap <Cm>
) will list it. (或
:nmap <Cm>
)将列出它。 To avoid the delay, you need to get rid of it / choose another key for it. 为了避免延迟,你需要摆脱它/为它选择另一个键。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.