Skip to content

Instantly share code, notes, and snippets.

@bgshacklett
Last active May 26, 2017 22:39
Show Gist options
  • Save bgshacklett/72fa830e4bff0ace820322c3a02f4175 to your computer and use it in GitHub Desktop.
Save bgshacklett/72fa830e4bff0ace820322c3a02f4175 to your computer and use it in GitHub Desktop.
Vim Snippets

A collection of useful Vim snippets

" Convert PowerShell parameters from inline to splat style
s/\<-\(.\{-\}\)\>/'\1' = /g
" Get rid of trailing commas inside of a JSON object
g/,\_s*}/exe "normal! f,x"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment