Windows で Vim を使い始めた初心者です。 とっても面白いテキストエディタなんで、秀丸からの乗換えを考えています。 で、ひとつ質問なんですが、現在の色設定を保存するにはどうしたら良いのでしょうか? 毎回起動するたびに色を変える必要があるのでしょうか? ヘルプも見ましたが、:set で変えるのかな、と思ってやってみても変化無し。 厨房な質問ですみません・・
>>369 :help 'fileencoding'から抜粋 > When 'fileencoding' is empty, the same value as 'encoding' will be > used (no conversion when reading or writing a file). というわけです。
371 :369 :02/01/28 16:15
_gvimrc に
function! GetStatusEx() let str = '' if( &fileformat == 'dos' ) let str = str . '[ dos' elseif( &fileformat == 'unix' ) let str = str . '[ unix' elseif( &fileformat == 'mac' ) let str = str . '[ mac' endif if has('multi_byte') && &fileencoding != '' let str = str . ', ' . &fileencoding endif if ( &filetype != '' ) let str = str . ', ' . &filetype endif let str = str . ' ]' return str endfunction
ってやって statusline にどの日本語コードのファイルを開いているか表示させているのですが、 fileencoding が空のときの判定をどうすれば良いか分かりません。 また help ファイルがなぜか iso-2022-jp になるのですが、見たところ日本語はありません。なぜでしょう?