Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim insert模式不允许编辑文件中的现有行,仅允许编辑新添加的行_Vim - Fatal编程技术网

Vim insert模式不允许编辑文件中的现有行,仅允许编辑新添加的行

Vim insert模式不允许编辑文件中的现有行,仅允许编辑新添加的行,vim,Vim,过去,当我在现有文件上进入插入模式时,我可以点击“删除”,这样就可以了。现在,我仍然可以删除和修改我新添加到文件中的内容,但如果打开文件后存在现有内容,我将无法删除这些内容。我只能删除和修改新内容。退出插入模式后,我仍然可以使用常规的ddtype命令删除内容。vimrc非常简单,我唯一的插件是SuperTab 这是我的.vimrc,如果有帮助的话: set tags=./tags,~/kent/src/tags,~/kent/src/lib/tags,~/kent/src/inc/tags,~/

过去,当我在现有文件上进入插入模式时,我可以点击“删除”,这样就可以了。现在,我仍然可以删除和修改我新添加到文件中的内容,但如果打开文件后存在现有内容,我将无法删除这些内容。我只能删除和修改新内容。退出插入模式后,我仍然可以使用常规的
dd
type命令删除内容。vimrc非常简单,我唯一的插件是SuperTab

这是我的.vimrc,如果有帮助的话:

set tags=./tags,~/kent/src/tags,~/kent/src/lib/tags,~/kent/src/inc/tags,~/kent/src/hg/lib/tags,~/kent/src/hg/inc/tags,~/kent/src/jkOwnLib/tags  
syntax on
filetype indent plugin on
set modeline
au FileType python setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4
set background=dark
set wildmode=longest,list,full
set wildmenu
下面是vim--version的输出:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb  8 2012 10:41:54)
Included patches: 1-434
Compiled by John St. John
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent 
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path 
+find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv 
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse 
+mouse_xterm -mouse_urxvt +multi_byte +multi_lang -mzscheme +netbeans_intg 
+path_extra -perl +persistent_undo +postscript +printer -profile +python 
-python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs +smartindent 
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary 
+tag_old_static -tag_any_white +tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo 
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
 -xterm_clipboard -xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/cluster/home/jstjohn/share/vim"
Compilation: gcc44 -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/usr/include  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_LARGEFILE64_SOURCE=1  
Linking: gcc44   -L/usr/local/lib -Wl,--as-needed -o vim       -lm -lncurses -lnsl  -lselinux      -L/hive/groups/recon/local/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic  -L/usr/lib -ltcl8.4 -ldl -lpthread -lieee -lm    

您很可能需要
设置backspace+=start
。一般来说,您可能需要设置backspace=indent、eol、start,但只需“start”就可以解决这个问题


有关其他选项的更多信息,请参见
:帮助“backspace”

您很可能需要
设置backspace+=start
。一般来说,您可能需要设置backspace=indent、eol、start,但只需“start”就可以解决这个问题

有关其他选项的更多信息,请参见
:帮助“退格”