aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc7
1 files changed, 7 insertions, 0 deletions
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 <leader>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 <leader>r :edit!<cr>
cnoremap <Esc>b <S-Left>
cnoremap <Esc>f <S-Right>
+" Read from OS X pasteboard for faster pasting
+nnoremap <leader>p :read !pbpaste<cr>
+
" Commands