Indenting a bunch of lines in Vim

后端 未结 5 1807
挽巷
挽巷 2020-12-24 14:36

Is there a way to indent a selection of lines in Vim, like we have in text editors where we select a bunch of lines and press tab (or shift tab) to indent/unindent the selec

5条回答
  •  情话喂你
    2020-12-24 14:42

    As suggested by the other answers you can use >. Alternatively, you can automatically correctly indent your code by selecting the set of line in visual mode (using shift+V), and then using =, or using == to indent the current line.

提交回复
热议问题