aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-15 14:04:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-15 14:04:07 +1200
commit94c8d6c527049984373d75c1f8910fe25f8736b4 (patch)
treed846a38e371ca2a16e63820f8572e7e06115dfec /vim
parentRevert "Remove redundant :pwd from mapping" (diff)
downloaddotfiles-94c8d6c527049984373d75c1f8910fe25f8736b4.tar.gz
dotfiles-94c8d6c527049984373d75c1f8910fe25f8736b4.zip
Try ternary operator for $MYVIMRUNTIME setting
Not sure about this just yet.
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index a194f137..7e34369b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -6,11 +6,11 @@ runtime system.vim
" Set an environment variable for the user runtime directory
if !exists('$MYVIMRUNTIME')
- if has('win32') || has('win64')
- let $MYVIMRUNTIME = expand('~/vimfiles')
- else
- let $MYVIMRUNTIME = expand('~/.vim')
- endif
+ let $MYVIMRUNTIME = expand(
+ \ has('win32') || has('win64')
+ \ ? '~/vimfiles'
+ \ : '~/.vim'
+ \ )
endif
" Load filetype settings, plugins, and maps