私は見回しましたが、これに対する答えは見つかりませんでした。 CentOS 5.8サーバーと同じ.vimrcで実行しているCentOS 6.2サーバーがありますが、6.2サーバーでVIMでEnterキーを押すと、前の行の最初の文字が追加されます(%または#は私が見たもの)。これは、(秒ラインが右に入る打った後ですが、他に何も入力せずに)VIMに何が起こるかです:VIMは打撃入力時に改行に文字を追加します
# <enter>
#
% <enter>
%
ここに私の.vimrcです:
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set number
imap jj <Esc> " Professor VIM says '87% of users prefer jj over esc', jj abrams disagrees
" Indenting *******************************************************************
set ai " Automatically set the indent of a new line (local to buffer)
set si " smartindent (local to buffer)
" Cursor highlights ***********************************************************
"set cursorline
"set cursorcolumn
" Set an orange cursor in insert mode, and a red cursor otherwise.
" Works at least for xterm and rxvt terminals.
" Does not work for gnome terminal, konsole, xfce4-terminal.
"if &term =~ "xterm\\|rxvt"
" :silent !echo -ne "\033]12;red\007"
" let &t_SI = "\033]12;orange\007"
" let &t_EI = "\033]12;red\007"
" autocmd VimLeave * :!echo -ne "\033]12;red\007"
"endif
" Searching *******************************************************************
set hlsearch " highlight search
set incsearch " Incremental search, search as you type
set ignorecase " Ignore case when searching
set smartcase " Ignore case when searching lowercase
" Colors **********************************************************************
"set t_Co=256 " 256 colors
set background=dark
syntax on " syntax highlighting
"colorscheme darkzen
は、それに対する差分と1蘭私の5.8サーバー(私はこの問題を抱えていません)と全く違いはありませんでした。なぜこれが起こっているかもしれないのか?
+1: 'VIM教授は'87%のユーザーがescよりjjを好むと言っていますが、jjのabramsは反対です' –
ファイルタイプのプラグインによって異なります。 –