Skip to content

Instantly share code, notes, and snippets.

@keyan
Forked from ericdouglas/super-tip.txt
Created March 4, 2017 23:28
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 keyan/314b5d9c9c7c65bd43efad9687a8a3f5 to your computer and use it in GitHub Desktop.
Save keyan/314b5d9c9c7c65bd43efad9687a8a3f5 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