From 9c05d0aaa8b3d95d6defd05aa1c352e28be43c01 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 6 Aug 2018 09:20:41 +1200 Subject: 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. --- vim/vimrc | 16 ++++++++-------- 1 file 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 -- cgit v1.2.3