vim tips

Indent multiple lines quickly

Use >


e.g. to indent 5 lines use:




To mark a block of 3 lines and indent in vim, use:



Repeat last change

Use .

e.g. if deleting a word with dw then just hit .to repeat.


Split screen and view another file

:vsplit <file>


Leave a Reply

Your email address will not be published. Required fields are marked *