mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-15 12:54:15 +01:00
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:
parent
5437f3237e
commit
64029e3c5b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user