2012-02-15 5 views
1

既存のファイルに挿入モードに入ったとき、私は "削除"を押す可能性がありました。今でもファイルに新しく追加したものを削除したり修正したりすることはできますが、ファイルを開くと既存のものがあればそのファイルを削除することはできません。私は新しいものだけを削除し、変更することができます。しかし、私はまだ普通のddコマンドで物事を削除する機能を持っています。私の.vimrcは非常に簡単で、私の唯一のアドオンはSuperTabです。それは場合に役立ちます。ここファイル内の既存の行を編集することができないVim挿入モード

は私の.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  

答えて

1

あなたが最も可能性の高いset backspace+=startする必要があります。一般的にはset backspace=indent,eol,startが必要ですが、この問題を具体的に解決するのは「開始」だけです。

他のオプションの詳細については、:help 'backspace'を参照してください。

+0

これは、おかげで、ありがとう! –

関連する問題