summaryrefslogtreecommitdiff
path: root/system/vim
diff options
context:
space:
mode:
Diffstat (limited to 'system/vim')
-rw-r--r--system/vim/APKBUILD8
-rw-r--r--system/vim/no-default-mouse.patch16
-rw-r--r--system/vim/vimrc2
3 files changed, 21 insertions, 5 deletions
diff --git a/system/vim/APKBUILD b/system/vim/APKBUILD
index 2f64f96d8..9c75b2621 100644
--- a/system/vim/APKBUILD
+++ b/system/vim/APKBUILD
@@ -4,7 +4,7 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
pkgname=vim
-pkgver=8.1.0606
+pkgver=8.1.0952
pkgrel=0
pkgdesc="advanced text editor"
url="http://www.vim.org"
@@ -17,6 +17,7 @@ makedepends_host="acl-dev ncurses-dev"
subpackages="$pkgname-doc ${pkgname}diff::noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
vimrc
+ no-default-mouse.patch
"
builddir="$srcdir/$pkgname-$pkgver"
@@ -80,5 +81,6 @@ vimdiff() {
mv "$pkgdir"/usr/bin/vimdiff "$subpkgdir"/usr/bin
}
-sha512sums="df02717611d7b2f54f3b60ff9f73259a6ff3228b841d7d2d429fa0eedd98ce0a140a6a3839b50bd67ce5724d86f816042d6cbb0930fd040d30216f98f2d7e6ec vim-8.1.0606.tar.gz
-3a6c9bc187a6f45fd78e91dcc44d4d661c1ae1f2655e3a66bb36245ad1dc41e8d0e6061ec3aee6d323f96058b4a5501a87e3327e539cfd026f68cf81d455d721 vimrc"
+sha512sums="485d839901b3d1fc8efcc035991d5f34849f6d05d9c556dcf5b2918cd01e7f7b490cd0a7eb976c7577adb41962dceea4552474103f0b3c7807311d07f8158bd1 vim-8.1.0952.tar.gz
+12ee3f96c94d74215159fba379ed61907ec5982a9f1643575dcb7c3d5e30824665d683de95f97b5067718b3f2a1238fb7534a70803bc170614498ad026f352d8 vimrc
+16026a3ed3e080b3f8281948579ab678e9acd724ad594463279712fbf1024bcd923155a133bd08118848d2c6cdf11c69489d85b1c7438f60b4c279094714d181 no-default-mouse.patch"
diff --git a/system/vim/no-default-mouse.patch b/system/vim/no-default-mouse.patch
new file mode 100644
index 000000000..c34b9cae7
--- /dev/null
+++ b/system/vim/no-default-mouse.patch
@@ -0,0 +1,16 @@
+diff -Nurd vim-8.1.0712/runtime/defaults.vim vim-8.1.0712.new/runtime/defaults.vim
+--- vim-8.1.0712/runtime/defaults.vim 2019-01-09 16:02:43.000000000 -0600
++++ vim-8.1.0712.new/runtime/defaults.vim 2019-01-27 01:18:04.196123398 -0600
+@@ -73,12 +73,6 @@
+ " Revert with ":iunmap <C-U>".
+ inoremap <C-U> <C-G>u<C-U>
+
+-" In many terminal emulators the mouse works just fine. By enabling it you
+-" can position the cursor, Visually select and scroll with the mouse.
+-if has('mouse')
+- set mouse=a
+-endif
+-
+ " Switch syntax highlighting on when the terminal has colors or when using the
+ " GUI (which always has colors).
+ if &t_Co > 2 || has("gui_running")
diff --git a/system/vim/vimrc b/system/vim/vimrc
index 66b72282c..df08a4866 100644
--- a/system/vim/vimrc
+++ b/system/vim/vimrc
@@ -4,8 +4,6 @@ set ai " Always set auto-indenting on
set history=50 " keep 50 lines of command history
set ruler " Show the cursor position all the time
-set mouse="" " Use Vim 7 default of no mouse movements by default
-
" Don't use Ex mode, use Q for formatting
map Q gq