Skip to content

Instantly share code, notes, and snippets.

@mmazer
Created January 29, 2016 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmazer/c7fe7ca2c5cc8c035b96 to your computer and use it in GitHub Desktop.
Save mmazer/c7fe7ca2c5cc8c035b96 to your computer and use it in GitHub Desktop.
Vim mapping to re-indent buffer and return to current cursor position
" re-indent buffer and return to current position
nnoremap g= gg=G``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment