Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

「Vimで、選択範囲のバッファをcmdの標準入力に流し込み、代わりにcmdの出力で置換する」方法について、いろんな解説サイトで

More than 5 years have passed since last update.

:'<,'>!cmd
とすればよいと書かれているけれど、これだと僕の環境では、選択範囲でなくカーソル行すべてが標準入力に渡されて置換されてしまう。やり方が間違っているのかな?

Cside
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away