1
为什么重新映射<Esc>会使光标跳转?
在.vimrc: inoremap ii <esc> " ii to go back into command mode 问题是,在之后ii,光标会向右跳35列。唯一会影响Esc以下内容的行: nnoremap <esc><esc> :noh<return><esc> 我尝试将其注释掉,但无济于事。 完整.vimrc: set nocompatible filetype off " Vundle --------------------------------------------------------------------- set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'gmarik/Vundle.vim' Plugin 'bling/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/nerdcommenter' Plugin 'scrooloose/syntastic' Plugin 'freitass/todo.txt-vim' Plugin 'plasticboy/vim-markdown' Plugin 'tpope/vim-fugitive' " :GitCommands Plugin …