Indenting a bunch of lines in Vim

后端 未结 5 1779
挽巷
挽巷 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:53

    I use the following mappings to indent/unindent:

    vmap  >gv
    vmap  

    Use TAB to indent and shift-TAB to unindent the visually selected lines.

    If a block is selected Vim indents/unindents what is right of the start of the block.

提交回复
热议问题