]> git.pld-linux.org Git - packages/vim.git/blame - vim-vimrc.patch
regenerate helptags
[packages/vim.git] / vim-vimrc.patch
CommitLineData
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
a39abb00 3@@ -46,13 +46,13 @@ map Q gq
66e92215
ER
4 inoremap <C-U> <C-G>u<C-U>
5
6 " In many terminal emulators the mouse works just fine, thus enable it.
7-if has('mouse')
8- set mouse=a
9-endif
10+"if has('mouse')
11+" set mouse=a
12+"endif
13
a39abb00
AM
14 " Switch syntax highlighting on when the terminal has colors or when using the
15 " GUI (which always has colors).
222a81c0
ER
16-if &t_Co > 2 || has("gui_running")
17+if (&t_Co > 2 || has("gui_running")) && filereadable($VIMRUNTIME."/syntax/syntax.vim")
18 syntax on
a39abb00
AM
19
20 " Also switch on highlighting the last used search pattern.
6f0254c1 21@@ -93,10 +93,18 @@
35973592
ER
22 " Convenient command to see the difference between the current buffer and the
23 " file it was loaded from, thus the changes you made.
24 " Only define it when not defined already.
66e92215
ER
25-if !exists(":DiffOrig")
26+if v:progname =~! "vi" && !exists(":DiffOrig")
7928792f 27 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
66e92215
ER
28 \ | wincmd p | diffthis
29 endif
30+
f13b9023 31+" Use :help colorscheme for info
66e92215 32+"set background=dark
3550d85a
ER
33+
34+" Source a global configuration file if available
35+if filereadable("/etc/vim/vimrc.local")
36+ source /etc/vim/vimrc.local
37+endif
6f0254c1
JB
38
39 if has('langmap') && exists('+langnoremap')
40 " Prevent that the langmap option applies to characters that result from a
This page took 0.080281 seconds and 4 git commands to generate.