Vim 有以下问题: 当我打开一个文件时,如果我处于插入模式,我无法删除任何字符/单词,除了打开文件之前尚未写入的内容。
在正常模式下,每个单词/字符删除命令都喜欢x或dw工作。
我的.vimrc:
" Vundle configuration
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" ck the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
" colorsheme theme
Bundle 'altercation/vim-colors-solarized'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<S-tab>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
set history=100
set number
set tabstop=3
set expandtab "use space instead of tab
set shiftwidth=3 "number of space char inserted for identation
syntax on
set background=dark
let g:solarized_termcolors = 256
colorscheme solarized
"Build Latex
autocmd FileType tex setlocal makeprg=pdflatex\ --shell-escape\ '%'
function CompileXeTex()
let oldCompileRule=g:Tex_CompileRule_pdf
let g:Tex_CompileRule_pdf = 'xelatex -aux-directory=F:/Vim/my_latex_doc/temp --synctex=-1 -src-specials -interaction=nonstopmode $*'
call Tex_RunLaTeX()
let g:Tex_CompileRule_pdf=oldCompileRule
endfunction
map <Leader>lx :<C-U>call CompileXeTex()<CR>
" Use fd as escape
:imap fd <Esc>
Run Code Online (Sandbox Code Playgroud)
预先感谢您的帮助。
从 Vim 帮助手册中,backspace默认为"":
当值为空时,使用 Vi 兼容的退格。
Vi 兼容退格的工作方式类似于<Left>. 所以设置backspace:
" set the backspace to delete normally
set backspace=indent,eol,start
Run Code Online (Sandbox Code Playgroud)