Skip to content

Instantly share code, notes, and snippets.

@manishrjain
Forked from ericdouglas/super-tip.txt
Created December 8, 2016 05:58
Show Gist options
  • Save manishrjain/2a02d0bbc1dbc81ee6762261aa608691 to your computer and use it in GitHub Desktop.
Save manishrjain/2a02d0bbc1dbc81ee6762261aa608691 to your computer and use it in GitHub Desktop.
Change 4 spaces to 2 spaces indentation - Vim tip
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment