Vimスクリプト(:tabdo)

:tabdo使います。

ヘルプを確認。

                                                        *:tabd* *:tabdo*
:[range]tabd[o] {cmd}
                Execute {cmd} in each tab page or if [range] is given only in
                tab pages which tab page number is in the [range].  It works
                like doing this:                        
                        :tabfirst
                        :{cmd}
                        :tabnext
                        :{cmd}
                        etc.
                This only operates in the current window of each tab page.
                When an error is detected on one tab page, further tab pages
                will not be visited.
                The last tab page (or where an error occurred) becomes the
                current tab page.
                {cmd} can contain '|' to concatenate several commands. 
                {cmd} must not open or close tab pages or reorder them.
                Also see |:windo|, |:argdo|, |:bufdo|, |:cdo|, |:ldo|, |:cfdo|
                and |:lfdo| 

:bufdoや:argdoと同じく、リストの順番に実行するだけっぽいですね。

では、使ってみましょう。

:tabdo s/HELLO/HELL /

test_4.txtのタブは置換されたようですが、他のタブはどうでしょうか。

:tabnext

test_1.txtのタブも置換されてますね。