回答:
最初に/(または?)を使用して検索を入力すると、正規表現を調整できます(incsearchを使用しているため)。
すべてがうまくいったら、 'search'アイテムに2つのセパレーターを使用することで、前の検索パターン(今使用したもの)を代替コマンドで使用できます。
/elephant                       " find the next elephant
:%s//rhino/gc                   " make then all rhinos!
もちろん、通常どおり選択と範囲を使用できます。
:1,15s,,cougar,g
:'<,'>s::tiger:
              s//
                    1つのオプションは、確認フラグを設定できることですc。
:%s;regex;replacement;gc
:h s_flags:
[c] Confirm each substitution.  Vim highlights the matching string.  You can type:              
        'y'     to substitute this match
        'l'     to substitute this match and then quit ("last")
        'n'     to skip this match
        <Esc>   to quit substituting
        'a'     to substitute this and all remaining matches
        'q'     to quit substituting
grepコマンドを試して、フィルタリングされた出力と強調表示された元のファイルを確認することもできます。
:g/re/p または :g/re/
さて、あなたの正規表現が一致するものを確認する短い方法は/、目的の正規表現を使用して検索を行うことです。入力中に最初の一致にジャンプしてマークアップします。それを試してください- vimあなたを失望させません。