Como ver e usar acentuação no VIM para língua portuguesa?
Have two way to do this in *Unix.
1. In Bash profile (~/.bashrc), set the environment variable LANG to latin1 or one of this below:
- latin1
- pt_BR.UTF-8
- iso-8859-1
- utf-8
2. In VIM profile (~/.vimrc)
- set encoding=latin1
- set fileencodings=latin1
- set termencoding=latin1
- set nocompatible
You can test in terminal to see if it is ok:
in bash:
export LANG=latin1
vim
write something with accent (e.g. Português)
in vim:
:set encoding=latin1
write something with accent (e.g. Português)