You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
概要 Vimにおいて Ruby編集時に(filetype=ruby) foldmethod=syntaxを指定していて 括弧の対応が取れていない状態で Insertモードで文字入力すると すごく重い。ファイルのサイズが大きい場合に顕著。 # ... loop { array=[1,2, # たとえばこのへんで入力してるとき } # ... 原因 matchitとかmatchparenあたりかと思ったが違った。 very slow insert mode in classes · Issue #8 · vim-ruby/vim-ruby · GitHub 結論としては、 foldmethod=syntax に設定してるのが原因。 解決方法 Insert modeのときはfoldmethodを変更する事で解決する。 私は以下の設定を使いました。 Keep folds closed while
Align.vimっていう、ここに載せたものより高機能なスクリプトがあります。 代入文がたくさん並んでると、なんか見にくいですよね。 @close_listeners = [] tool_bar = Gtk::HBox.new @label_title = Gtk::Label.new @btn_close = Gtk::Button.new('X') @moz = Gtk::MozEmbed.new 以下のようになったら見やすいよね? @close_listeners = [] tool_bar = Gtk::HBox.new @label_title = Gtk::Label.new @btn_close = Gtk::Button.new('X') @moz = Gtk::MozEmbed.new viについてちょっと調べものをしていたら ヽ( ・∀・)ノきゅまきゅまーさんのところ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く