Humanity

Edit the world by your favorite way

2010-08-14から1日間の記事一覧

#if 0 〜 #endif や 関数定義を折り畳む

Vim C

ふとそんなftpluginを書こうかと思ったのですが、 見てみたら公式のsyntax/c.vimで実現されていたので autocmd FileType c setlocal foldmethod=syntax だけでいけました。(新しくないと実装されてないかも?) ちなみに 自分は~/.vim/after/ftplugin/c.vimを…