- 149 名前:名無しさん@お腹いっぱい。 mailto:sage [2010/11/23(火) 21:26:06 ]
- >>128
Windows ならば %USERPROFILE%\vimfiles\ftplugin\ruby.vim に Linux ならば $HOME/.vim/ftplugin/ruby.vim に、以下を書く inoreab <buffer> module module<cr>end<up><end> inoreab <buffer> class class<cr>end<up><end> inoreab <buffer> def def<cr>end<up><end> んで、filtype が ruby のときだけ、class を書けば次行に end が入力されて クラス名を入力する状況になる。do, case でやってもいいけど "string" や /regexp/ の中で書くとウザイよ。 補完を停止するには、class と入力した後に、C-c する。 以下だと _ が補完の発動になるので、じゃまっけではないかも inoreab <buffer> module_ module<cr>end<up><end> inoreab <buffer> class_ class<cr>end<up><end>
|

|