" in ~/.vimrc
au BufWritePost */bin/* :silent !chmod a+x <afile>
au BufEnter */bin/* if getline(1) == "" | :call setline(1, "#!/usr/bin/env ruby") | endif
参考:

Simple creation of scripts - Vim Tips Wiki - a Wikia wiki

This entry was posted on 2008-04-02 20:00:00 GMT and カテゴリ . You can follow any response to this entry through the Atom feed. or a trackback from your own site.

タグ


トラックバック

トラックバックリンク:
http://blog.netswitch.jp/trackbacks?article_id=8612