1 --- vim73/runtime/vimrc_example.vim~ 2010-05-15 14:03:57.000000000 +0300
2 +++ vim73/runtime/vimrc_example.vim 2011-01-02 22:53:43.246560000 +0200
4 set showcmd " display incomplete commands
5 set incsearch " do incremental searching
7 +" use compressed docs, see :help gzip-helpfile
8 +set helpfile=$VIMRUNTIME/doc/help.txt.gz
10 " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
11 " let &guioptions = substitute(&guioptions, "t", "", "g")
14 inoremap <C-U> <C-G>u<C-U>
16 " In many terminal emulators the mouse works just fine, thus enable it.
24 " Switch syntax highlighting on, when the terminal has colors
25 " Also switch on highlighting the last used search pattern.
26 -if &t_Co > 2 || has("gui_running")
27 +if (&t_Co > 2 || has("gui_running")) && filereadable($VIMRUNTIME."/syntax/syntax.vim")
32 " Convenient command to see the difference between the current buffer and the
33 " file it was loaded from, thus the changes you made.
34 " Only define it when not defined already.
35 -if !exists(":DiffOrig")
36 +if v:progname =~! "vi" && !exists(":DiffOrig")
37 command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
38 \ | wincmd p | diffthis
41 +" Use :help colorscheme for info
44 +" Source a global configuration file if available
45 +if filereadable("/etc/vim/vimrc.local")
46 + source /etc/vim/vimrc.local