Skip to content

Instantly share code, notes, and snippets.

View paxunix's full-sized avatar

Shawn Halpenny paxunix

View GitHub Profile
@paxunix
paxunix / README.markdown
Created February 2, 2013 21:09
Vim hackery.

Annoyed that the Perl debugger thinks each entered line should be immediately evaluated? It's hard to paste in a multi-line sub definition that way. Add escape-newlines.vim into ~/.vimrc.

How it works:

  1. visually-select multiple lines
  2. Type "+\e. (If your mapleader is set to something else, use it instead of \).
  3. The contents of your clipboard will now be the selected lines with \ appended to each.
  • It won't affect your buffer.
  • It supports yanking into arbitrary registers.