Skip to content

Instantly share code, notes, and snippets.

@rajesh-battala
Forked from ericdouglas/super-tip.txt
Created December 13, 2016 14:27
Show Gist options
  • Save rajesh-battala/cf8e8a14bf7a475506acd8e2d50aa4ad to your computer and use it in GitHub Desktop.
Save rajesh-battala/cf8e8a14bf7a475506acd8e2d50aa4ad 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