aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-24 15:26:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-24 15:26:37 +1200
commit9e8f7a12f0ae15529105d423da16a2d24eebb123 (patch)
treed3d3c16f451a76587ed1656e88009d46c194c9f2
parentRemove per-system vimrc fixing (diff)
downloaddotfiles-9e8f7a12f0ae15529105d423da16a2d24eebb123.tar.gz
dotfiles-9e8f7a12f0ae15529105d423da16a2d24eebb123.zip
Restore ternary syntax for $VIM setting
Can't make up my mind...
-rw-r--r--vim/vimrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index ad30cd63..0617b045 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -3,11 +3,11 @@
" Set an environment variable for the user runtime directory
if !exists('$MYVIM')
- if has('win32') || has('win64')
- let $MYVIM = expand('~/vimfiles')
- else
- let $MYVIM = expand('~/.vim')
- endif
+ let $MYVIM = expand(
+ \ has('win32') || has('win64')
+ \ ? '~/vimfiles'
+ \ : '~/.vim'
+ \ )
endif
" The all-important default indent settings; filetypes to tweak