vim/vim-8.0.1568-defaults.patch
Ondřej Súkup 82210ee5ca Accepting request 811871 from home:lnussel:branches:editors
- remove duplicated settings in defaults.vim from SUSE vimrc
- move SUSE vim settings to /usr in data-common package so leave
  /etc/vimrc to the admin.
- require data-common in vim-small so it gets the settings
- install spec file template as plugin as vim-small doesn't support
  it

OBS-URL: https://build.opensuse.org/request/show/811871
OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=606
2020-06-05 16:23:31 +00:00

35 lines
988 B
Diff

Index: vim-8.2.0701/runtime/defaults.vim
===================================================================
--- vim-8.2.0701.orig/runtime/defaults.vim
+++ vim-8.2.0701/runtime/defaults.vim
@@ -77,13 +77,15 @@ inoremap <C-U> <C-G>u<C-U>
" can position the cursor, Visually select and scroll with the mouse.
" Only xterm can grab the mouse events when using the shift key, for other
" terminals use ":", select text and press Esc.
-if has('mouse')
- if &term =~ 'xterm'
- set mouse=a
- else
- set mouse=nvi
- endif
-endif
+" disabled in (open)SUSE to make copy&pase work as most people
+" except it boo#1079185
+"if has('mouse')
+" if &term =~ 'xterm'
+" set mouse=a
+" else
+" set mouse=nvi
+" endif
+"endif
" Switch syntax highlighting on when the terminal has colors or when using the
" GUI (which always has colors).
@@ -139,3 +141,6 @@ if has('langmap') && exists('+langremap'
" compatible).
set nolangremap
endif
+
+" include SUSE tweaks
+ru suse.vim