From 86b481a79e92bc50b2bd9031ff585b7ab5795f1c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 15 Nov 2014 16:02:17 -0500 Subject: vimrc: Add p mapping Add a mapping to read from the OS X pasteboard. Pasting directly in insert mode is excessively slow when dealing with a lot of text. Likely caused by too much redrawing. Reading directly from the OS X pasteboard is much faster, so add a mapping for that. --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index a62bd61..4d32cd7 100644 --- a/vimrc +++ b/vimrc @@ -262,6 +262,10 @@ " * Set sessionoptions-=options so that options and mappings are not " saved in vim sessions. " +" 2014.11.15: +" * Add p mapping to read from the OS X pasteboard. Much faster +" than pasting directly if you're dealing with a lot of text. +" " Pathogen @@ -573,6 +577,9 @@ nnoremap r :edit! cnoremap b cnoremap f +" Read from OS X pasteboard for faster pasting +nnoremap p :read !pbpaste + " Commands -- cgit v1.2.3