From 3f40c7af601ff5a83fea68bedd9cc65dc06b92e7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 25 May 2019 00:19:39 +1200 Subject: Simplify 'encoding' checks --- vim/vimrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vim') 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 -- cgit v1.2.3