:echo $MYVIMRC
:view $VIM/_vimrc
EDIT my vimrc then saveas myhome
UTF-8 SET
set fileencodings=utf-8,big5,euc-jp,gbk,euc-kr,utf-bom,iso8859-1
set encoding=utf-8
set tenc=utf-8
set fileencoding=utf-8
Menu UTF-8 SET
source $VIMRUNTIME/delmenu.vim
language messages zh_TW.utf-8
:saveas $HOME/_vimrc
Vim 去除檔案結尾的^M
:%s/^M//g
(記得^M要用CTRL-V CTRL-M來輸入)
:%s/\r//g
或者是
回到上次編輯離開的地方
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif