多行插入(Shift-I)在vim中不再起作用

时间:2019-09-01 18:09:52

标签: vim

我曾经能够使用ctrl-v和Shift-I进行多行插入。我认为可能是安装gvim引起的吗?我花了几个小时试图解决这个问题。我试过没有插件运行并删除.vimrc

我的.vimrc

execute pathogen#infect()
syntax on
filetype plugin indent on
set nocompatible
set tabstop=2     "Set size of tab to 2 spaces
set shiftwidth=2 
set expandtab     "Turns tab into spaces
set autoindent    "Automatically indents to the same indent next line
set smarttab      "return on a tabbed line returns to that tabbed position
set number        
set showcmd       "shows last command typed
set wildmenu      "Autocomplete menu that pops up at bottom
set showmatch
""SEARCH""
set incsearch     "search as characters are entered
set hlsearch      "highlights all words
""PASTE MODE""""""""""""""""""""""""""""
nnoremap <F2> :set invpaste paste?<CR> 
set pastetoggle=<F2>                   
set showmode                           
""SET COLORS"""""
colo solarized
set background=dark

augroup filetypedetect
    au BufRead,BufNewFile *.hbs setfiletype html
    " associate *.hbs with html filetype
augroup END

全局vimrc

runtime! debian.vim 

if has("syntax")
  syntax on
endif

if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif

0 个答案:

没有答案