Skip to content

Instantly share code, notes, and snippets.

@sirusdas
Last active March 8, 2018 14:23
Show Gist options
  • Save sirusdas/bda45115492e14d36095d8a10cc1f13d to your computer and use it in GitHub Desktop.
Save sirusdas/bda45115492e14d36095d8a10cc1f13d to your computer and use it in GitHub Desktop.
List of useful Vim commands

#indent paragraphs

Step 1:

> CODE: :'<,'> norm I    
> Get into visual mode by pressing v.
> Select the paragraph to indent.
> Press :
> You will see a code like :'<,'> in that type norm I followed by how many spaces you required.
> The code will look like :'<,'> norm I    //here i have used 4 spaces.
> 'norm' is to make Visual mode act as normal mode.
> 'I' is to insert at the begining of Line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment