basyura's blog

あしたになったらほんきだす。

Vrapper is not quite dead - 0.16.0 released

1 年 2 ヶ月の沈黙を破って 0.16.0 がリリースされました。

Version 0.16.0 has been released. It is not a major release in terms of functionality but it is an attempt to keep the project moving forward.

0.16.0 released

github 上では、開発者によるコミットと pull request の取り込みが行われています。0.16.0 の変更点は以下のとおり。

Added incremental search (:set incsearch)

検索コマンドを打ち込んでいる間にも、マッチするテキストをすぐに表示(カーソルを移動)する。

Added highlight search (:set hlsearch)

マッチするテキストを全て強調表示する。

強調表示を消すために毎回 :set nohlsearch と打つのがめんどくさい場合は、.vrapperrc に以下を書いておくと幸せになれるかもしれない。

nnoremap <ESC> :nohlsearch<CR>

Added line number toggle (:set number)

行番号の表示。

Added show whitespace toggle (:set list)

ちょっと違う気がするんだけど空白文字を表示できる、でいいんだろうか?

Added scrolljump and scrolloff options (:set scrolljump=10 :set scrolloff=10)

カーソルが画面外に出たときにスクロールする行数の最小値(scrolljump)と、カーソルの上または下に表示する行数(scrolloff)。
特に scrolloff はソースの見やすさがグッとあがるのでうれしい。

Added commands for lenient word search (g* and g#)

カーソル位置の単語を検索する。

Center the line after jumping to a line that was far away from the viewport

これはよく分からない。センターになってるように思えないんだが、、、。見てるソースが短すぎるんだろうか。

Ctrl-V in search/command-line mode pastes text from the clipboard

コマンドラインにクリップボードからコピペできる。



個人的には scrolloff が非常にうれしい。
unstable の方では、surround.vim 機能の実装が行われている模様。vrapper は死んでるどころか活発になってきてるよ。