aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index bca31093..50f19a1f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -44,7 +44,7 @@
" choose "utf-8" as an encoding instead if the encoding is the default
" 'latin1', and LANG is not defined.
"
-if &encoding ==# 'latin1' && !exists('$LANG')
+if !exists('$LANG') && &encoding ==# 'latin1'
set encoding=utf-8
endif
scriptencoding utf-8