anzu.vim で末尾から先頭に移動した場合にメッセージを出力する
'wrapscan' が有効になっている場合、末尾まで検索し、先頭に移動するのですが、その時に『下まで検索したので上に戻ります』というメッセージが出力されます。
これを anzu.vim でも設定できるようにしてみました。
" Vim からのメッセージを出力しない場合は " set shortmess+=s " 出力するメッセージ let g:anzu_bottomtop_word = "search hit BOTTOM, continuing at TOP" let g:anzu_topbottom_word = "search hit TOP, continuing at BOTTOM" " %w が上のテキストに置き換えられる let g:anzu_status_format = "%p(%i/%l) %w"