diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-25 00:19:39 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-25 00:19:39 +1200 |
commit | 3f40c7af601ff5a83fea68bedd9cc65dc06b92e7 (patch) | |
tree | acd628a25b3c92d867404551d215f2f60ea1f290 | |
parent | Save a different path for 'viminfo' file (diff) | |
download | dotfiles-3f40c7af601ff5a83fea68bedd9cc65dc06b92e7.tar.gz dotfiles-3f40c7af601ff5a83fea68bedd9cc65dc06b92e7.zip |
Simplify 'encoding' checks
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |