aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:10:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-28 22:10:52 +1300
commit795fd1099e3c3de78067e0e199976732df1b5722 (patch)
treea930e3cb01af79b3aef1203457c6cb520984f26f
parentMove .vimrc 'encoding' to beneath scriptencoding (diff)
downloaddotfiles-795fd1099e3c3de78067e0e199976732df1b5722.tar.gz
dotfiles-795fd1099e3c3de78067e0e199976732df1b5722.zip
Check .vimrc '+shellslash' before setting it
From :help 'shellslash': > 'shellslash' only works when a backslash can be used as a path > separator. To test if this is so use: > if exists('+shellslash')
-rw-r--r--vim/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b64e4290..dd8d9232 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -208,7 +208,9 @@ set report=0
" Always use forward slashes, I very seldom need to use Vim on Windows for
" more than scratch space anyway
-set shellslash
+if exists('+shellslash')
+ set shellslash
+fi
" Don't show line numbers by default, but \n toggles them
set nonumber