Browse Source

Use less "invasive" pasting in Vim

(Return cursor after pasting; not sure how well it works for lines but
it's ok for chars.)
Alois Mahdal 8 years ago
parent
commit
ebff64d47b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      dotfiles/vim/vimrc

+ 2
- 0
dotfiles/vim/vimrc View File

@@ -80,6 +80,8 @@ set tabstop=4
80 80
 
81 81
 inoremap <C-Left> <C-P>
82 82
 inoremap <C-Right> <C-N>
83
+noremap p p`[
84
+noremap P P`[
83 85
 
84 86
 if has("autocmd")
85 87
   filetype plugin indent on