aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-06 09:20:41 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-06 09:20:41 +1200
commit9c05d0aaa8b3d95d6defd05aa1c352e28be43c01 (patch)
tree3a8bc7e17d9e23231da67af79517030c6656d9d9 /vim
parentAdd explicit LC_COLLATE settings to plmu(1df) (diff)
downloaddotfiles-9c05d0aaa8b3d95d6defd05aa1c352e28be43c01.tar.gz
dotfiles-9c05d0aaa8b3d95d6defd05aa1c352e28be43c01.zip
Use ^= instead of += for arbitrary text options
This avoids an edge case where arbitrary text at the end of a directory name or flag:value disrupts the meaning of the added object. This was already applied for 'backupdir', 'directory', and 'undodir', but it needed to be added in a couple of other places too.
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc16
1 files changed, 8 insertions, 8 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 6b181fa7..e9fbaf3f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -49,8 +49,8 @@ set backup
set backupdir^=~/.vim/cache/backup,~/vimfiles/cache/backup
" Add some paths not to back up
-set backupskip+=/dev/shm/*
-set backupskip+=/var/tmp/*
+set backupskip^=/dev/shm/*
+set backupskip^=/var/tmp/*
" Indent wrapped lines
silent! set breakindent
@@ -113,11 +113,11 @@ set lazyredraw
set linebreak
" Define extra 'list' display characters
-set listchars+=extends:> " Unwrapped text to screen right
-set listchars+=precedes:< " Unwrapped text to screen left
-set listchars+=tab:>- " Tab characters, preserve width
-set listchars+=trail:_ " Trailing spaces
-silent! set listchars+=nbsp:+ " Non-breaking spaces
+set listchars^=extends:> " Unwrapped text to screen right
+set listchars^=precedes:< " Unwrapped text to screen left
+set listchars^=tab:>- " Tab characters, preserve width
+set listchars^=trail:_ " Trailing spaces
+silent! set listchars^=nbsp:+ " Non-breaking spaces
" Don't allow setting options via buffer content
set nomodeline
@@ -127,7 +127,7 @@ set nrformats-=octal
" Options for file search with gf/:find
set path-=/usr/include " Let the C/C++ filetypes set that
-set path+=** " Search current directory's whole tree
+set path^=** " Search current directory's whole tree
" Don't show startup splash screen (I donated)
set shortmess+=I