このドキュメントの内容は、以下の通りです。 はじめに HybridText の導入 NeoBundle 設定 .vimrc インストール アップデート 設定 使い方 まとめ はじめに ただのメモ帳をvimで編集しているときに不満はありませんか? C とか PHP とか書いてる時は、カラフルにハイライトされているのに、なぜ、 テキストファイルは、貧相なカラーリングなのか?と思ってませんか? タブでインデントを入れていても、全部、フラットなカラーで表示されているよりも色で分かれていたほうが、よりわかりやすいです。 箇条書きにしているときに、行頭に、マイナスや数字を入れた場合に、それをちょっとアピールするようなカラーにしたほうが、見やすいです。 つまり、良い感じにハイライトすることによって、視認性を上げられます。 その解決策とは? それは、HybridText です。 たとえば、こんな感じです。
codefirst で使っている Redmine にインストールされているプラグインを数えてみるとちょうど 10 だったので公開してみようと思います。 ちなみにほとんど自作プラグインです。自演乙。 1. Redmine Absolute Dates plugin http://github.com/suer/redmine_absolute_dates チケットの作成日や更新日などで表示される「XX 日前」のような表記を yyyy/mm/dd 形式に変更するプラグインです。 小ネタプラグインのわりにはダウンロード数が多いようです。 みんな困っていたのか。 2. Redmine Code Review plugin http://www.r-labs.org/projects/r-labs/wiki/Code_Review Redmine のリポジトリ表示上でコードレビューコメントをつけるこ
最近php.netを見ると英語で表示されるようになってしまったり、一々ブラウザにフォーカス当てたり、一度入力した関数名をもう一度入力するのが面倒になってきたのでref.vimを導入してみました。 ref.vimのインストール http://github.com/thinca/vim-refにあるので、DownloadsページからDLするかgitコマンドで取ってくるだけですぐに使えます。 今回は特に理由はないですが、gitコマンドで取ってきます。 % git clone http://github.com/thinca/vim-ref.git 取ってきたら、後は$HOME/.vimディレクトリに中身を放り込めばref.vimが動くようになります。 phpmanualのDL&設定 これだけだとref.vimは動きますが、PHPのマニュアルを見ることができないのでその設定もします。 phpman
svn-diff.vim - Show diff when commiting changes on a subversion repository : vim online Subversionによるソース管理を行なっているVimmerの多く(?)の方は、svn.vim(svn-diff.vim)を利用されていると思います。 もれなく私も利用していますが、コミット時にsvn diffの結果を表示してくれる非常に便利なプラグインです。 もうちょっとだけ便利に コミットするファイルの svn info情報(コミット先URLだけ) 最終コミットログ も表示するようにしてみました。 以下のように表示されます。 URL: http://svn.com/repos/TestProject/trunk/hoge.pl ------------------------------------------
遥か昔に partedit.vim というバッファの一部分を別のバッファで編集するためのプラグインを密かに作っていたのだけど、色々あって作ったまま放置されていた。 で、作ったのはいいけど自分ですら使ってなくて正直使い道あるのかとか思ってたんだけど、世の中には同系のプラグインもあるようで需要がないってこともなさそうなので燻ぶってるのは勿体無いし整理して公開することにした。 https://github.com/thinca/vim-partedit リポジトリのログを見ればわかるけど、最初のコミットが 2009/11/20 です。ほぼ丸2年ですね!どんだけ放置してたんだ。 で、何ができるかと言うと、最初に言った通りバッファの一部を別のバッファに展開してそこで編集できる。 範囲を選択しておもむろに :'<,'>Partedit split とか実行すると、新しくバッファが開かれる。引数指定しな
ちょっと前から名前は見かけていたんだけど、何をするプラグインなのかよく分からなくて見送っていた。Twitterでもつぶやいたけど、もっと早く導入しておけば良かったと、ちょっと触ってみただけで思った。 unite.vim - Unite all sources : vim online どんなことができるかについては、作者さんが公開しているこのプレゼン資料がわかりやすい。このプラグインについてほとんど知らない自分が、前述のプレゼン資料を読んで、18ページ目に書かれている:Unite buffer file file_mruを実行してみて受けた印象は、 Vim用のコマンドラインランチャー(Windowsで言えばfenrir、Macで言えばQuicksilver)のようなもの ってかんじ。でも、色々なブログでの紹介を見ていると、ランチャー機能だけにとどまらずかなり広い操作をカバーしており、拡張性
ここでは自作のプログラムやWebサービス(アプリ)を紹介していきます. 少しでも誰かの役に立つことができたら幸いです. 最新の投稿 Vimのオススメプラグイン3つ+設定 第2期のlivedoorブログ奨学金に応募した Vim-折りたたみ(folding)関連のコマンド Vimでhelpを垂直に表示する wordpressのソースコードを読んで設計を勉強したい カテゴリ API (1) java (1) lamp (2) mac (4) mysql (2) OS工学 (1) php (5) tex (1) twitter (2) Ubuntu (9) Vim (4) web (2) Webアプリ (2) Webサービス (2) wordpress (1) xml (1) YWebGrp (1) その他 (3) はてな (2) インターンシップ (2) コマンド (1) ゼミ (2) プロ
http://www.vim.org/scripts/script.php?script_id=1697 vim7 から追加された text-object は大変便利で、今や手放せなくなっています。その text-object をより便利に使えるプラグイン、surround.vim が便利すぎるので紹介します。 いままで、text-object では (以下では、コードの『*』の位置に現在カーソルがあると考えてください。) foo 'b*ar' bazの位置にカーソルがあるとき、i' でシングルクオーテーションの中身を選択できたり、a' でシングルクオート含む部分を選択できました。しかし『'』そのものを削除したり、置換したりはできなく、ちょっと不便でした。しかし、surround.vim では ds cs ys vs それぞれにコマンドを割り当てて、様々なことができるようになってます。たと
新卒さん向け、速攻でプログラミングをマスターできるvimプラグイン「quickrun」 2011年04月25日- 新卒さん向け、速攻でプログラミングをマスターできるvimプラグイン「quickrun」。 この春、会社に入って、サーバに入って vim でプログラミングさせられている人はそれなりにいそうですが、その場合に速攻でプログラミングをマスターできるquickrunプラグインを入れておきましょう。 プログラミングを覚えるには作って動かすが一番いいですが、「書いて」→「保存して」→「実行して」を一瞬で行えます。 具体的にはプログラムを書いていて、コマンドモードで「¥r 」をタイプするだけでペインが分かれてプログラムの実行結果が得られます。 VPSなどを借りて、これからプログラミングをはじめようって方にも有効です。 かなりインスタントに実行できるので、こう書くとこう出る、がサクサク進められる
Derek Wyatt quite possibly has the best selection of Vim related screencasts on the web. Even better, he covers the spectrum, by offering screencasts for beginners, all the way to advanced topics. I've watched all of them myself, and continue to come back! These are highly recommended. 2. Smashing into Vim Though this site is currently on hiatus, Vimcasts.org provides a new and helpful screencast
Displays an alert after the specified time. 指定時間後にアラートダイアログを出したりする。タイマー。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く