aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index dc1183f6..0d9c7b39 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -113,9 +113,10 @@ endif
" first value from the 'runtimepath'. We'll use this later on in the file to
" comprehensively match expected paths for vimrc files.
"
-if &runtimepath !=# ''
- let $MYVIM = option#Split(&runtimepath)[0]
+if &runtimepath ==# ''
+ throw 'Empty ''runtimepath'''
endif
+let $MYVIM = option#Split(&runtimepath)[0]
" The next components of the runtime directory that we'll set up here will
" make use of the user’s configured XDG base directories: