Skip to content

Instantly share code, notes, and snippets.

@rmw
Last active August 5, 2022 17:37

Revisions

  1. rmw revised this gist Jun 12, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim_command
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    :%s/['"]\([a-zA-Z_-]*\)['"]\s*=>/\1: /gc
    :%s/['":]\([a-zA-Z_-]*\)['"]*\s*=>/\1: /gc
  2. rmw revised this gist Jun 11, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim_command
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    ['"]\([a-zA-Z_-]*\)['"]\s*=>/\1: /gc
    :%s/['"]\([a-zA-Z_-]*\)['"]\s*=>/\1: /gc
  3. rmw revised this gist Jun 11, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vim_command
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    :%s/"\([a-zA-Z_-]*\)"=>/\1: /gc
    ['"]\([a-zA-Z_-]*\)['"]\s*=>/\1: /gc
  4. rmw created this gist Jun 1, 2015.
    1 change: 1 addition & 0 deletions vim_command
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    :%s/"\([a-zA-Z_-]*\)"=>/\1: /gc