]> git.pld-linux.org Git - packages/vim.git/blame - vim-vimrc.patch
- unconditional noarch subpackages
[packages/vim.git] / vim-vimrc.patch
CommitLineData
98d45eb4
AM
1--- vim-7.4.2189/runtime/vimrc_example.vim~ 2016-08-09 22:14:05.000000000 +0200
2+++ vim-7.4.2189/runtime/vimrc_example.vim 2016-08-09 22:20:44.071303413 +0200
3@@ -26,7 +23,7 @@ else
4 endif
5 endif
6
7-if &t_Co > 2 || has("gui_running")
8+if (&t_Co > 2 || has("gui_running")) && filereadable($VIMRUNTIME."/syntax/syntax.vim")
9 " Switch on highlighting the last used search pattern.
10 set hlsearch
11 endif
12@@ -56,3 +53,11 @@ endif " has("autocmd")
13 if has('syntax') && has('eval')
14 packadd matchit
15 endif
16+
17+" Use :help colorscheme for info
18+"set background=dark
19+
20+" Source a global configuration file if available
21+if filereadable("/etc/vim/vimrc.local")
22+ source /etc/vim/vimrc.local
23+endi
d35c0518
ER
24--- vim-7.4.2189/runtime/defaults.vim 2016-08-09 22:26:29.727124083 +0200
25+++ vim-8.2.0241/runtime/defaults.vim 2020-05-13 10:02:53.863204152 +0300
26@@ -68,6 +68,10 @@
27 " Revert with ":unmap Q".
28 map Q gq
29
30+" Avoid common :X mistype. replace it with :x
31+" http://stackoverflow.com/a/17793858
32+cnoreabbrev X x
33+
34 " CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
35 " so that you can undo CTRL-U after inserting a line break.
36 " Revert with ":iunmap <C-U>".
37@@ -77,13 +81,13 @@
98d45eb4 38 " can position the cursor, Visually select and scroll with the mouse.
95f20e39
AM
39 " Only xterm can grab the mouse events when using the shift key, for other
40 " terminals use ":", select text and press Esc.
66e92215 41-if has('mouse')
95f20e39
AM
42- if &term =~ 'xterm'
43- set mouse=a
44- else
45- set mouse=nvi
46- endif
66e92215
ER
47-endif
48+"if has('mouse')
95f20e39
AM
49+" if &term =~ 'xterm'
50+" set mouse=a
51+" else
52+" set mouse=nvi
53+" endif
66e92215
ER
54+"endif
55
a39abb00
AM
56 " Switch syntax highlighting on when the terminal has colors or when using the
57 " GUI (which always has colors).
d35c0518 58@@ -99,7 +103,7 @@
35973592
ER
59 " file it was loaded from, thus the changes you made.
60 " Only define it when not defined already.
98d45eb4 61 " Revert with: ":delcommand DiffOrig".
66e92215
ER
62-if !exists(":DiffOrig")
63+if v:progname =~! "vi" && !exists(":DiffOrig")
7928792f 64 command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
66e92215
ER
65 \ | wincmd p | diffthis
66 endif
This page took 0.090366 seconds and 4 git commands to generate.