Skip to content
Browse files

Select the last pasted text

  • Loading branch information...
1 parent 0788635 commit 03dccbdb6ed7554b8addf7bed2104eaa664ef79e @lmarburger committed Jul 29, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 vimrc
View
3 vimrc
@@ -154,6 +154,9 @@ vmap <leader>* S*gvS*
""" Open file in Marked
map <leader>m :silent !open "%" -a /Applications/Marked.app<cr>:redraw!<cr>
+""" Select the last pasted text
+nmap <expr> gp '`[' . strpart(getregtype(), 0, 1) . '`]'
+
augroup Vim
autocmd!

0 comments on commit 03dccbd

Please sign in to comment.
Something went wrong with that request. Please try again.