aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-28 22:47:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-28 22:47:00 +1200
commitd94f27ffd67524a01186e1f5ad0dc8b39fa7de89 (patch)
treed3bcaa7e7805009d8eb34b5e199559b55c9599b1 /vim/vimrc
parentMerge branch 'release/v4.49.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-d94f27ffd67524a01186e1f5ad0dc8b39fa7de89.tar.gz
dotfiles-d94f27ffd67524a01186e1f5ad0dc8b39fa7de89.zip
Merge branch 'release/v4.50.0'v4.50.0
* release/v4.50.0: Bump VERSION Update to vim-insert-cancel v5.0.0 Update vim-scroll-next to v1.0.0 Update vim-scroll-next to v0.3.0 Don't split entire array just to get first element Whoops, I didn't mean to leave these in here Refine apostrophe matching for mail greetings Update vim-vimrc-reload-filetype to v1.0.0 Update vim-insert-timeout to v1.0.1 Enable forward_attachments in Mutt Enable crypt_protected_headers_write in Mutt Update vim-quickfix-auto-open to v1.0.0 Adjust a concatenated string Update vim-insert-suspend-hlsearch to v1.0.0 Update vim-quickfix-auto-open to v1.0.0 Update vim-copy-linebreak to v1.0.0 Update vim-paste-open to v2.0.0 Update vim-cursorline-current to v0.4.0 Update vim-insert-cancel to v4.0.0 Move 'viminfofile'
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e93bd4e3..c88781c1 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -4,7 +4,9 @@
" Set an environment variable for the user runtime directory, if not already
" set; use the first element of &runtimepath, rather like 'spellfile'
if !exists('$MYVIM')
- let $MYVIM = expand(split(&runtimepath, ',')[0])
+ let $MYVIM = expand(
+ \ strpart(&runtimepath, 0, stridx(&runtimepath, ','))
+ \ )
endif
" The all-important default indent settings; filetypes to tweak
@@ -25,9 +27,7 @@ set backspace=
" Keep backup files in dedicated directory; add trailing double-slash to keep
" full path in name, if Vim is new enough to support that
set backup
-execute 'set backupdir^='
- \ . escape($MYVIM, '\ ')
- \ . '/cache/backup'
+execute 'set backupdir^='.escape($MYVIM, '\ ').'/cache/backup'
\ . (has('patch-8.1.251') ? '//' : '')
" Add some *nix paths not to back up
@@ -179,7 +179,7 @@ endif
" Keep the viminfo file in the home Vim directory, mostly to stop history
" getting clobbered when something runs Vim without using this vimrc
-let $VIMINFO = $MYVIM.'/viminfo'
+let $VIMINFO = $MYVIM.'/cache/viminfo'
if exists('+viminfofile') " Use new option method if we can (v8.1.716)
set viminfofile=$VIMINFO
else " Resort to clunkier method with 'viminfo' option flag