在 vim inoremap jj <Esc> 中打印 <Esc> 而不是返回正常模式
In vim inoremap jj <Esc> prints <Esc> instead of returning to normal mode
在命令行中按 Tab 键也只是打印出 ^] 而不是自动完成。我的.vimrc文件如下:
filetype plugin indent on " show existing tab with 4 spaces width
set tabstop=4 " use 4 spaces width for indenting
set shiftwidth=4 " same but when you use tab
set expandtab " use spaces instead of tabs
filetype plugin on " for syntax highlighting
syntax on " syntax highlighting
set number " show line numbers
inoremap jj <Esc>
我也是 运行 一个相当新的 Arch linux 安装。我在 Konsole、XTerm 和 Termite 中尝试过,但 return 结果相同。提前致谢。
您需要关闭 vi 兼容性。 inoremap
在兼容模式下不可用。
此外,我注意到您 filetype plugin on
两次。你不需要那样做;你可能可以消除第二个。
set nocompatible
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
set number
inoremap jj <Esc>
在命令行中按 Tab 键也只是打印出 ^] 而不是自动完成。我的.vimrc文件如下:
filetype plugin indent on " show existing tab with 4 spaces width
set tabstop=4 " use 4 spaces width for indenting
set shiftwidth=4 " same but when you use tab
set expandtab " use spaces instead of tabs
filetype plugin on " for syntax highlighting
syntax on " syntax highlighting
set number " show line numbers
inoremap jj <Esc>
我也是 运行 一个相当新的 Arch linux 安装。我在 Konsole、XTerm 和 Termite 中尝试过,但 return 结果相同。提前致谢。
您需要关闭 vi 兼容性。 inoremap
在兼容模式下不可用。
此外,我注意到您 filetype plugin on
两次。你不需要那样做;你可能可以消除第二个。
set nocompatible
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
syntax on
set number
inoremap jj <Esc>