vim: Open Shift JIS files with proper encoding

This makes dealing with certain Japanese files significantly easier
since we no longer have to worry about manually performing a Shift JIS
to UTF-8 conversion before opening the file in vim, nor do we have to
worry about manually changing the encoding with :e ++enc=sjis.
This commit is contained in:
Donovan Glover 2022-10-24 11:48:19 -04:00
parent 5437f3237e
commit 64029e3c5b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -67,6 +67,7 @@ set nocompatible " Use vim defaults (i.e. ignore vi compatibility)
set backspace=indent,eol,start " Make the backspace key function as you would expect
set encoding=utf-8 " Always show files as utf-8
set fileencoding=utf-8 " Ensure that we always save files as utf-8
set fileencodings=utf-8,sjis " Automatically open shiftjis files with their proper encoding
set autoindent " Automatically indent new lines
set ignorecase " By default use case-insensitive search (combine with smartcase)