In Vim visual mode, why does the command start with '<,'>?

前端 未结 5 1056
醉酒成梦
醉酒成梦 2021-01-04 09:47

When I pop into Vim\'s visual mode to, for example, indent a block of text, the command prompt always starts with \'<,\'>. Can someone break down for me w

5条回答
  •  囚心锁ツ
    2021-01-04 10:33

    Once you select in Visual Mode e.g. five lines, then '<,'> means that you will execute the command in that region.

    so :'<,'>s/replaceMe/WithThis/g will apply to only that selection

提交回复
热议问题