背景 競技プログラミングで遊んでると、使い回しが効くようなコードはスニペット機能を使って素早く挿入したくなった。 Vimプラグインはあまり使ったことがないため、インストール周りで少し手こずったのでメモ化。 スニペットとは? コード・スニペット。簡単に言うと定型構文を素早く挿入できる機能。 Vimでもプラグインを導入すればスニペット機能を利用できる。 この辺りを参照すると雰囲気がつかめると思う。 VimでPHPの補完にスニペットを使ったら捗った件 - Qiita 導入手順 プラグイン管理ツールの導入 Shougo/neobundle.vim Neobundleは、Vimプラグインを管理するためのプラグイン。 gitから落としてくる。 mkdir -p ~/.vim/bundle git clone git@github.com:Shougo/neobundle.vim.git ~/.vim/