summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/vim/PKGBUILD12
-rw-r--r--libre/vim/parabola.vim12
2 files changed, 15 insertions, 9 deletions
diff --git a/libre/vim/PKGBUILD b/libre/vim/PKGBUILD
index 1feeef953..084df096d 100644
--- a/libre/vim/PKGBUILD
+++ b/libre/vim/PKGBUILD
@@ -15,9 +15,9 @@
pkgbase=vim
pkgname=('vim' 'gvim' 'vim-runtime')
-pkgver=8.0.1542
+pkgver=8.0.1838
_versiondir=80
-pkgrel=2.parabola2
+pkgrel=1.parabola1
pkgdesc='Vi Improved, a highly configurable, improved version of the vi text editor'
url='http://www.vim.org'
arch=('x86_64' 'i686' 'armv7h')
@@ -28,13 +28,13 @@ source=(vim-${pkgver}.tar.gz::https://github.com/vim/vim/archive/v${pkgver}.tar.
vimrc
parabola.vim
vimdoc.hook)
-sha256sums=('d0818df5c6da23db725aa68067c90c80f0779c2e3446811bd1389b1ac2c2df86'
+sha256sums=('0d72e80c1acb1852be830d9cc82e0609f9f345857c7239c6a2fa4cba335ef548'
'6c22ef5791004dc3a1151400a3ce6aec35f660237aed734bcde0a8a16882cbc0'
- '42af0c3c2376c2a4f29631d56a827050945cf1e2f8e774526254da5f4a1fe524'
+ '546075a566e3f7ae19debb155e8075cb848d5182fc0e6d8d6466715e638be7d8'
'7095cafac21df7aa42749d6864d1c0549fe65771d8edda3102c931c60782b6b9')
-sha512sums=('f6d3af209018ea70c5f87f4b4cc9f8c9daaabd7925ad33a381b20cd744dd7d8e43540f5b0174cd1b01c104a71e3bb6116c585de09c7e5e670a02d93866591541'
+sha512sums=('ec0c126361baf0e031d27bc82424121b1de9334357c3e26be959dc5556ac5f112db7be92ed8f679b91442f072cb52cc42fcae6ddb0ae9160392b6623a256ce06'
'33608b0551c0829d802fe8f710a2e0381fd9cf013b2321ebf3cbda36ce973d115139bf4dbbe19ce79f1df85f4ca5f571347269c561ecf3a70a22ddc9c42043f2'
- '68803129e15fdb4e49b5aaf1f1f6fdd17824e399812cd0c14129ddd4bf4d0da3bbd234b4be619be338318186ce4b44cdbf38cf53d38fe38e75a086b58a448d37'
+ '4130d927f8ea56bd8614a49617b4eb8a474d09394bc4f4582a58dc9eadc67bf8b7e8fb3742ddc68f602b7eb2d2840d580d9293ba7d864500950ecdcd7fdbcc7e'
'1e06e981691b17662fd0fddac5c00c87c920d1b4a1cbb6191c42d57cc40b00af12710e26b22fcfc0901bb8142b15f6a04aa65cec2d9b3bb9d5a06cb650d3ab9c')
prepare() {
diff --git a/libre/vim/parabola.vim b/libre/vim/parabola.vim
index 45424d969..f7e5bbf82 100644
--- a/libre/vim/parabola.vim
+++ b/libre/vim/parabola.vim
@@ -17,10 +17,16 @@ set ruler " show the cursor position all the time
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
" Move the swap file location to protect against CVE-2017-1000382
-if ! isdirectory('~/.vim/swap/')
- silent! call system('install -dm 700 ~/.vim/swap')
+if exists('$XDG_CACHE_HOME')
+ let &g:directory=$XDG_CACHE_HOME
+else
+ let &g:directory=$HOME . '/.cache'
+endif
+let &g:directory.='/vim/swap//'
+" Create swap directory if it doesn't exist
+if ! isdirectory(expand(&g:directory))
+ silent! call mkdir(expand(&g:directory), 'p', 0700)
endif
-set directory=~/.vim/swap/
if has('gui_running')
" Make shift-insert work like in Xterm