aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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