Skip to content

Instantly share code, notes, and snippets.

@hollingberry
Created August 13, 2015 00:40
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 hollingberry/848b0cafd2765c99465e to your computer and use it in GitHub Desktop.
Save hollingberry/848b0cafd2765c99465e to your computer and use it in GitHub Desktop.
Don't deselect when indenting in vim
vnoremap > ><CR>gvll
vnoremap < <<CR>gvhh
@hollingberry
Copy link
Author

gv recalls the most recent selection
ll and hh put the cursor back where it started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment