Object Pascal (Delphi) を Vim で
Twitter で Pascal と Vim のお話が出ていたので、Vim と Delphi の開発環境を作る方法です。 私は 2 つの vim plugins で環境を作っています。 シンタックスハイライト: $VIM/sytax/delphi.vim コンパイラ: $VIM/compiler/delphi.vim シンタックスハイライトについては、ダウンロードページの通りに syntax ディレクトリに放り込み、$VIM/filetype.vim を編集します。 コンパイラについては、以下の内容を $VIM/comiler ディレクトリーに delphi.vim として保存します。 if exists("current_compiler") finish endif let current_compiler = "delphi" setlocal makeprg=make setlocal errorformat=%*\\r%f(%l)\ %m let $PATH='C:\PathTo\Borland\Delphi*\Bin;'.$PATH setlocal makeprg=dcc32\ -Q これだけです。*.dpr ファイルを開き、:compiler delphi と入力し、:make すると他の言語同様にコンパイルできます。filetype.vim で、*.dpr に compiler delphi を追加しておくと幸せになれます。