Permalink
Browse files

ソース貼り付け用keymap

  • Loading branch information...
1 parent ba7e97b commit a965eac6a3548234277e85b975286ac012c4d4bd @deris committed Feb 13, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 .vimrc
View
@@ -365,6 +365,9 @@ vnoremap [General]y "*y
nnoremap [General]d "*d
nnoremap [General]D "*d$
vnoremap [General]d "*d
+" クリップボードからソース貼り付け
+nnoremap [General]sp :<C-u>let b:save_paste=&paste<CR>:set paste<CR>"*p:let &paste=b:save_paste<CR>
+nnoremap [General]sP :<C-u>let b:save_paste=&paste<CR>:set paste<CR>"*P:let &paste=b:save_paste<CR>
" registerを汚さずに削除
nnoremap <Leader>d "_d

0 comments on commit a965eac

Please sign in to comment.