08/12/03 18:23:02 rWQuUbo40
>>50
augroup Extension
autocmd!
autocmd BufNewFile * if expand("<afile>") =~ '^[^\.]*$' |
\ silent execute "file " . expand("<afile>") . ".txt" | endif
augroup END
これを設定ファイルに書いて、
:e hoge とか :new hoge とすると
自動的に バッファ名が hoge.txt になるので
そのまま :w とすれば hoge.txt というファイル名で保存できるけどどうかな