分类: LINUX
2011-03-10 07:56:29
" An example
for
a vimrc
file
.
"
" Maintainer: a18ccms
" Last change: 2010 03 12
"
" To use it, copy it to
"
for
Unix and OS
/2
: ~/.vimrc
"
for
Amiga: s:.vimrc
"
for
MS-DOS and Win32: $VIM\_vimrc
"
for
OpenVMS: sys$login:.vimrc
" When started as "
evim", evim.vim will already have
done
these settings.
if
v
:progname =~?
"evim"
finish
endif
set
history
=50 " keep 50 lines of
command
line
history
set
showcmd " display incomplete commands
" For Win32 GUI: remove
't'
flag from
'guioptions'
: no tearoff menu entries
" let &guioptions = substitute(&guioptions, "
t
", "
", "
g")
" Don't use Ex mode, use Q
for
formatting
map Q gq
" Convenient
command
to see the difference between the current buffer and the
"
file
it was loaded from, thus the changes you made.
command
DiffOrig vert new |
set
bt=nofile | r
# | 0d_ | diffthis
\ | wincmd p | diffthis
\ | wincmd p | diffthis
set
guioptions-=T
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
"
" 一般设定
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
"