diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-15 14:04:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-15 14:04:07 +1200 |
commit | 94c8d6c527049984373d75c1f8910fe25f8736b4 (patch) | |
tree | d846a38e371ca2a16e63820f8572e7e06115dfec /vim | |
parent | Revert "Remove redundant :pwd from mapping" (diff) | |
download | dotfiles-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/vimrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |