Skip to content

Instantly share code, notes, and snippets.

@leminh111
Forked from ericdouglas/super-tip.txt
Created December 29, 2015 05:02
Show Gist options
  • Save leminh111/874c91644f058796eb4e to your computer and use it in GitHub Desktop.
Save leminh111/874c91644f058796eb4e 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