Skip to content

Instantly share code, notes, and snippets.

@vasansr
Created December 31, 2016 07:33
Show Gist options
  • Save vasansr/9b10ef001e88da3da4b01fa3edc877c5 to your computer and use it in GitHub Desktop.
Save vasansr/9b10ef001e88da3da4b01fa3edc877c5 to your computer and use it in GitHub Desktop.
Useful vim Tricks
_Convert tabs to spaces_
:set expandtab
:%retab
_indent region_
(select region, use v or V)
=
_indent region (alt)_
(mark using m')
(move to other end)
=''
_auto indent_
:se ai
_wrap a long line_
gqgq
(or, select and gq)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment