ref.vimをインストール @.vimrc ... NeoBundle 'thinca/vim-ref' ... manualのダウンロード & refeコマンドの作成 $ mkdir -p ~/local/{ref,bin} $ cd ~/local/ref $ curl -O http://www.ruby-lang.org/ja/man/archive/snapshot/ruby-refm-1.9.3-dynamic-snapshot.tar.gz $ tar zxvf ruby-refm-1.9.3-dynamic-snapshot.tar.gz $ vi ~/local/bin/refe@ refe #!/usr/bin/env bash exec ruby -Ke -I $HOME/local/ref/ruby-refm-1.9.3-dynamic-snapshot/bitc
以前から気になっていたRSenseを試してみました。 Rsenseを簡単に紹介するとRubyの高精度なコード補完です。(vimとemacsに対応) 本家で動画が紹介されています。 未踏すごいなぁ。 Rsense本家 RSense - EmacsやVimなどに特化したRubyのための優れた開発援助ツール Rubyのための開発補助ツール、RSenseをリリースしました - Monthly Emacs インストール download $ wget http://cx4a.org/pub/rsense/rsense-0.3.zip $ unzip rsense-0.3.zip RSENSE_HOMEの設定(.bashrcにでも追記) export RSENSE_HOME=$HOME/lib/rsense-3.0 権限付与 $ cd $RSENSE_HOME $ chmod +x bin/rsens
vim の ruby オプションを有効にする まずはデフォルトでは無効になっている vim の ruby オプションを有効にする。 # デフォルトの vim は -ruby $ vim --version | grep ruby -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs +smartindent ubuntu 標準の vim を使うのであれば再インストールの必要はなく、vim-nox を入れればそれで ruby が有効になる。 vim-nox は別に ruby のためのものではなく、以前 vim-full として提供されていたもので、いろいろなものがセットになっている。nox は no-x,つまり GUI が無い版ということらしい。とにかく他にもいろいろ有効になる。 $ sudo apt-get inst
m2ymさんが作成したRSenseは、まだ未完成ですが優れた型推論機能で便利です。 しかし、Vimには一応対応しているもののcompletefuncを書き換えてしまうため、 neocomplcacheと併用すると問題が発生します。 私がneocomplcacheと相性が良くなるように書き換えたので、 etc/rsense.vimを置き換えてください。 http://github.com/Shougo/rsense 追記:Ver.0.3で私のパッチが取り込まれ、neocomplcacheに対応しました! その上で、次のような設定をすれば一応動作します。 g:rsenseHomeはRSenseをインストールしたディレクトリを指定してください。 let g:rsenseHome = 'c:/rsense-0.3' let g:rsenseUseOmniFunc = 1 if !exists('g
RSense という Ruby のプログラムを書いているときに、レシーバの型に応じた補完候補を表示してくれるソフトがあります。Emacs とか Vim と組み合わせて使うと便利らしいです。Java で IDE 使って開発すると補完候補がわさわさ出てきて殆ど鼻くそほじってるだけでプログラミングできるという話を聞いたので、Ruby でも鼻くそほじりながらプログラミングしたいなと思ってこいつを導入してみることにしました。春頃やったときはなかなかうまく Vim から使うことが出来なくて諦めてたんだけど 、つい最近できるようになったのでやり方をメモっておきます。 Mac でのお話です 前提条件ですが、Mac で使ってます。環境は Homebrew で構築してます。また RSense を使うには Java Runtime Environment が必要です。あなたと Java RSense のインスト
vim使っているrubyistで、これ入れていないのはヤバいプラグインまとめ 9個 (2013-10-04更新)RubyVimctags Rubyの開発効率を高めたい! vimでRubyやRails開発するときに、デフォルトの状態では非力ですよね。 開発効率を高める9つのプラグインを紹介します。 alpaca_tags ctagsの非同期生成 neosnippet Rails/sinatra/rspec等の補完 swtich.vim .present?:.brank?など対応するキーワードを切り替える rubocop 文法エラー、スタイルチェック vim-rails Railsプロジェクト用プラグイン unite-rails Railsプロジェクト用Unite-source vim-endwise if...endなど対応するキーワードの自動補完 rub
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く