aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-25 00:19:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-25 00:19:39 +1200
commit3f40c7af601ff5a83fea68bedd9cc65dc06b92e7 (patch)
treeacd628a25b3c92d867404551d215f2f60ea1f290
parentSave a different path for 'viminfo' file (diff)
downloaddotfiles-3f40c7af601ff5a83fea68bedd9cc65dc06b92e7.tar.gz
dotfiles-3f40c7af601ff5a83fea68bedd9cc65dc06b92e7.zip
Simplify 'encoding' checks
-rw-r--r--vim/vimrc6
1 files changed, 2 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 56ee3d51..6bad90a6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -70,10 +70,8 @@ set cpoptions+=J
" encoded path in filename (trailing double slash)
set directory^=$MYVIM/cache/swap//
-" Use UTF-8 if we can and $LANG doesn't tell us not to
-if has('multi_byte')
- \ && !exists('$LANG')
- \ && &encoding ==# 'latin1'
+" Default to UTF-8 if $LANG didn't specify
+if !exists('$LANG')
set encoding=utf-8
endif