set fenc=utf-8
バッファにファイルを読み込んだり、バッファからファイルに書き込んだりす るときに使われる <EOL> を、カレントバッファについて設定する。
set fileformat=unix set ff=dos
設定される改行コード
dos <CR> <NL> unix <NL> mac <CR>
command! -nargs=? -bang ToUTF8 call s:ToUTF8('<bang>')
function! s:ToUTF8(bang)
setlocal fenc=utf-8
setlocal ff=unix
endfunction
Keyword(s):
References:[FrontPage]