Skip to content

Instantly share code, notes, and snippets.

@miraleung
Forked from ericdouglas/super-tip.txt
Created March 10, 2019 02:03
Show Gist options
  • Select an option

  • Save miraleung/06910db42735b4ff7607e76d5d46fff0 to your computer and use it in GitHub Desktop.

Select an option

Save miraleung/06910db42735b4ff7607e76d5d46fff0 to your computer and use it in GitHub Desktop.

Revisions

  1. @ericdouglas ericdouglas revised this gist Sep 19, 2017. No changes.
  2. @ericdouglas ericdouglas revised this gist Sep 19, 2017. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion super-tip.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1,5 @@
    %s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g
    // 4 spaces to 2 spaces
    %s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g

    // Tab to 2 spaces
    :%s/\t/ /g
  3. @ericdouglas ericdouglas revised this gist Oct 2, 2015. No changes.
  4. Eric Douglas created this gist Oct 16, 2014.
    1 change: 1 addition & 0 deletions super-tip.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    %s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g