How to edit blocks in vim without visual block mode

前端 未结 3 1425
忘掉有多难
忘掉有多难 2021-01-26 04:53

Is there a way to edit a vertical block in a code without using the visual block mode selection?

3条回答
  •  野的像风
    2021-01-26 05:44

    In addition to Ingo's answer, I'll add this: Ex commands are line-wise by design. The nature of the visual mode doesn't matter: Ex commands will always use the first line and the last line of your selection as range by default anyway.

    Because it's not line-wise, visual-block mode and block "thinking" doesn't really align with Ex commands.

提交回复
热议问题