Last active
January 29, 2016 06:40
-
-
Save kzisme/d50e3557cd1758ff9c34 to your computer and use it in GitHub Desktop.
Little vim tricks I want to remember.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To indent multiple lines at once '5 >>' will indent the next 5 lines | |
To swap a line with the one above it 'ddkP' will do it. | |
To yank a whole file ':%y+' | |
To wrap a line with a tag using surround-vim "yss<h1>" | |
To wrap multiple lines hilight the lines with Shift + V or motions then "S<p>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment