diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 22:10:52 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 22:10:52 +1300 |
commit | 795fd1099e3c3de78067e0e199976732df1b5722 (patch) | |
tree | a930e3cb01af79b3aef1203457c6cb520984f26f | |
parent | Move .vimrc 'encoding' to beneath scriptencoding (diff) | |
download | dotfiles-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/vimrc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |