Skip to content

Instantly share code, notes, and snippets.

@sangwook
Last active August 29, 2015 13:57
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 sangwook/9361169 to your computer and use it in GitHub Desktop.
Save sangwook/9361169 to your computer and use it in GitHub Desktop.
space to tab in vim
execute '%s%\v^([ ]{'.a:space_size.'}){12}%\t\t\t\t\t\t\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){11}%\t\t\t\t\t\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){10}%\t\t\t\t\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){9}%\t\t\t\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){8}%\t\t\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){7}%\t\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){6}%\t\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){5}%\t\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){4}%\t\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){3}%\t\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){2}%\t\t%Ig'
execute '%s%\v^([ ]{'.a:space_size.'}){1}%\t%Ig'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment