分类: LINUX
2009-03-29 22:16:45
set nocompatible
setting makes vim
behave in a more useful way (the default) than the vi-compatible
manner. Remove the “no” to
keep the old vi
behavior. The set
backspace=2
setting allows backspacing over line
breaks, autoindents, and the start of insert. The syntax on
parameter enables vim's
syntax highlighting. Finally, the if statement with the set background=dark
setting corrects
vim's guess about the
background color of some terminal emulators. This gives the
highlighting a better color scheme for use on the black background
of these programs.