Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tallenaz
Last active December 11, 2015 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallenaz/4636512 to your computer and use it in GitHub Desktop.
Save tallenaz/4636512 to your computer and use it in GitHub Desktop.
.vimrc setting to detect file encoding
if has("statusline")
set statusline=%<%f\ %y\ %h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P
endif
set fileencodings=ucs-bom,utf-8,sjis,euc-jp,default,latin1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment