私は周りを見回しましたが、これに対する答えは見つかりませんでした。CentOS 5.8 サーバーと同じ .vimrc で実行されている CentOS 6.2 サーバーがありますが、6.2 サーバーの VIM で Enter キーを押すと、前の行の最初の文字が特定の文字 (% または # は私が見たもの)。これは 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
それと私の5.8サーバー(私はこの問題を抱えていません)上のものに対して差分を実行しましたが、まったく違いはありませんでした。なぜこれが起こっているのでしょうか?