aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-24 15:28:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-24 15:28:32 +1200
commitd1f7c14a185e89bafa5bf62ffbe00fd53c64bab2 (patch)
treeb90d90655144bb47676009a5ea9aee565c11dff8
parentRestore ternary syntax for $VIM setting (diff)
downloaddotfiles-d1f7c14a185e89bafa5bf62ffbe00fd53c64bab2.tar.gz
dotfiles-d1f7c14a185e89bafa5bf62ffbe00fd53c64bab2.zip
Use comma-separated syntax for multiple appends
-rw-r--r--vim/vimrc16
1 files changed, 8 insertions, 8 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0617b045..acb2173d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -43,8 +43,8 @@ endif
" Add some *nix paths not to back up
if has('unix')
set backupskip^=/dev/shm/* " Shared memory RAM disk
- set backupskip^=/usr/tmp/* " Hard-coded path for `sudo -e` 1/2
- set backupskip^=/var/tmp/* " Hard-coded path for `sudo -e` 2/2
+ \,/usr/tmp/* " Hard-coded paths for `sudo -e` 1/2
+ \,/var/tmp/* " Hard-coded paths for `sudo -e` 2/2
endif
" Indent wrapped lines if supported (v7.4.338)
@@ -58,7 +58,7 @@ set commentstring=
" Add completion options
set completeopt+=longest " Insert longest common substring
-set completeopt+=menuone " Show the menu even if only one match
+ \,menuone " Show the menu even if only one match
" Give me a prompt instead of just rejecting risky :write, :saveas
set confirm
@@ -133,11 +133,11 @@ set lazyredraw
set linebreak
" Define extra 'list' display characters
-set listchars+=extends:> " Unwrapped text to screen right
-set listchars+=nbsp:+ " Non-breaking spaces
-set listchars+=precedes:< " Unwrapped text to screen left
-set listchars+=tab:>- " Tab characters, preserve width
-set listchars+=trail:_ " Trailing spaces
+set listchars+=extends:> " Unwrapped text to screen right
+ \,nbsp:+ " Non-breaking spaces
+ \,precedes:< " Unwrapped text to screen left
+ \,tab:>- " Tab characters, preserve width
+ \,trail:_ " Trailing spaces
" Don't allow setting options via buffer content
set nomodeline