]>
Commit | Line | Data |
---|---|---|
7928792f ER |
1 | --- vim74/runtime/vimrc_example.vim~ 2013-09-06 00:10:56.000000000 +0300 |
2 | +++ vim74/runtime/vimrc_example.vim 2013-09-06 00:11:24.756404306 +0300 | |
35973592 ER |
3 | @@ -31,6 +31,9 @@ |
4 | set showcmd " display incomplete commands | |
5 | set incsearch " do incremental searching | |
6 | ||
7 | +" use compressed docs, see :help gzip-helpfile | |
8 | +set helpfile=$VIMRUNTIME/doc/help.txt.gz | |
9 | + | |
10 | " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries | |
11 | " let &guioptions = substitute(&guioptions, "t", "", "g") | |
12 | ||
13 | @@ -42,13 +45,13 @@ | |
66e92215 ER |
14 | inoremap <C-U> <C-G>u<C-U> |
15 | ||
16 | " In many terminal emulators the mouse works just fine, thus enable it. | |
17 | -if has('mouse') | |
18 | - set mouse=a | |
19 | -endif | |
20 | +"if has('mouse') | |
21 | +" set mouse=a | |
22 | +"endif | |
23 | ||
24 | " Switch syntax highlighting on, when the terminal has colors | |
25 | " Also switch on highlighting the last used search pattern. | |
222a81c0 ER |
26 | -if &t_Co > 2 || has("gui_running") |
27 | +if (&t_Co > 2 || has("gui_running")) && filereadable($VIMRUNTIME."/syntax/syntax.vim") | |
28 | syntax on | |
29 | set hlsearch | |
30 | endif | |
6f0254c1 | 31 | @@ -93,10 +93,18 @@ |
35973592 ER |
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. | |
66e92215 ER |
35 | -if !exists(":DiffOrig") |
36 | +if v:progname =~! "vi" && !exists(":DiffOrig") | |
7928792f | 37 | command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis |
66e92215 ER |
38 | \ | wincmd p | diffthis |
39 | endif | |
40 | + | |
f13b9023 | 41 | +" Use :help colorscheme for info |
66e92215 | 42 | +"set background=dark |
3550d85a ER |
43 | + |
44 | +" Source a global configuration file if available | |
45 | +if filereadable("/etc/vim/vimrc.local") | |
46 | + source /etc/vim/vimrc.local | |
47 | +endif | |
6f0254c1 JB |
48 | |
49 | if has('langmap') && exists('+langnoremap') | |
50 | " Prevent that the langmap option applies to characters that result from a |