JimmyLiao

JimmyLiao Notes: Developer, Runner, Thinker

VIM: indent for multiple lines or comment block

2021-09-17 VIM

Indenting

  1. On the first line you would like to mark to indent, enter to visual mode: (Press Ctrl+v)

  2. Move cursor down to the last line for indent

  3. Press > to indent

Comment Block

  1. On the first line you would like to mark to indent, enter to visual mode: (Press Ctrl+v)

  2. Move cursor down to the last line for indent

  3. Press Shift+i, then Press #

comments powered by Disqus