aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-18 21:44:23 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-18 21:44:23 +1200
commite15811f5ea8f21123f71efe01cb6924609826df0 (patch)
tree9e13aff1b6ef2e87a9d6c6a0106abc2d32b2d9d1 /vim
parentAdjust paste_insert.vim to :set paste pre-insert (diff)
downloaddotfiles-e15811f5ea8f21123f71efe01cb6924609826df0.tar.gz
dotfiles-e15811f5ea8f21123f71efe01cb6924609826df0.zip
Swap two terms
Diffstat (limited to 'vim')
-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