Skip to content

Instantly share code, notes, and snippets.

@zph
Created February 18, 2013 19:58
Show Gist options
  • Save zph/4980163 to your computer and use it in GitHub Desktop.
Save zph/4980163 to your computer and use it in GitHub Desktop.
fu! PryToggle()
let @a = "require 'pry'; binding.pry"
let wordsFromLine = getline('.')
if @a ==? wordsFromLine
:normal dd
else
:normal "ap
endif
endfu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment