Skip to content

Instantly share code, notes, and snippets.

View JakobOlsson's full-sized avatar

Jakob Olsson JakobOlsson

  • Denmark
View GitHub Profile
@JakobOlsson
JakobOlsson / vim_example
Last active January 29, 2020 11:55
VIM: find line fitting pattern and change two words
:%s/me\(.*\)you/you\1me/g
# whould replace a line like;
# so me and awesome you, should....
# with;
# so you and awesome me, should....
## Find empty lines and add another empty line
:%s/^$/\r/g

Keybase proof

I hereby claim:

  • I am jakobolsson on github.
  • I am magikern (https://keybase.io/magikern) on keybase.
  • I have a public key ASCth5Hm6KQeJABR1bDPdwmD6CUIXEau9_nGdbyR65gapgo

To claim this, I am signing this object: