Tabbing visual selection in VIM

后端 未结 9 749
悲哀的现实
悲哀的现实 2020-12-02 18:35

In many GUIs when I select a section of text and then hit the Tab or Shift+Tab button the selected section will indent in or out.

I

9条回答
  •  渐次进展
    2020-12-02 19:39

    Since I've abandoned vi to vim, I've never used > nor < again. I exploit vim automated indentation that can be explicitly triggered with =

    It works very well to motions like =a{ which is even more efficient than =%

    Otherwise, If one > isn't enough, just redo it with ., or undo the change with u.

提交回复
热议问题