Why, when I press the vim (gvim) enter button, show ^ M in normal mode?

there is a strange occurrence of my vim (gvim).
just like I said in the title, when I press the enter button, it will show ^ M in the lower right. and disappears after about 1 second, then it will act as it should. as if this is the first character of some multi-charactor command.

here are some lines in my 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 this?

thanks for pinpin. but my problem arises in normal mode.

thanks for any help :)

+4
source share
1 answer

, <C-M> <CR> ( <Enter>). , Vim , , ( :set showcmd), , Enter.

:nmap <CR>

( :nmap <C-m>) . , / .

+3

All Articles