aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:23:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:23:01 +1200
commite2b4d8fbe5e3a8bfce4adf3d3489357d2ca27efa (patch)
tree231121fa2a56f0df61f48bde4e1c76b5b2042879 /vim
parent091dd758d03098ed5e291274fa1a5e6bef4f16a2 (diff)
downloaddotfiles-e2b4d8fbe5e3a8bfce4adf3d3489357d2ca27efa.tar.gz
dotfiles-e2b4d8fbe5e3a8bfce4adf3d3489357d2ca27efa.zip
Don't test for +backup Vim feature
Because there is no such feature...
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc31
1 files changed, 13 insertions, 18 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e6ff3c77..4a999f7f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -50,6 +50,19 @@ set backspace+=eol " Line breaks
set backspace+=indent " Spaces from 'autoindent'
set backspace+=start " The start of current insertion
+" Do keep backups
+set backup
+
+" Try to keep them all in one system-appropriate dir, with full path
+if has('unix')
+ set backupdir^=~/.vim/cache/backup//
+elseif has('win32') || has('win64')
+ set backupdir^=~/vimfiles/cache/backup//
+endif
+
+" Don't back up stuff in /dev/shm or /var/tmp
+set backupskip+=/dev/shm,/var/tmp
+
" Try to keep swapfiles in one system-appropriate dir
if has('unix')
set directory^=~/.vim/cache/undo
@@ -112,24 +125,6 @@ set shortmess+=I
" Give me a bit longer to complete mappings
set timeoutlen=3000
-" Backup settings
-if has('backup')
-
- " Do keep backups
- set backup
-
- " Try to keep them all in one system-appropriate dir, with full path
- if has('unix')
- set backupdir^=~/.vim/cache/backup//
- elseif has('win32') || has('win64')
- set backupdir^=~/vimfiles/cache/backup//
- endif
-
- " Don't back up stuff in /dev/shm or /var/tmp
- set backupskip+=/dev/shm,/var/tmp
-
-endif
-
" Clear default 'comments' value, let the filetype handle it
if has('comments')
set comments=