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

前端 未结 5 1058
醉酒成梦
醉酒成梦 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:23

    '< is the first line visually selected, and '> is the last line visually selected. This is vim's way of making your command apply to only the visual area.

提交回复
热议问题