Skip to content
Permalink
Browse files

Prevent register yanking while pasting

  • Loading branch information...
Raggaer committed May 8, 2019
1 parent 8f7946c commit 090221053a83a274760235d9dda9608450ebaab4
Showing with 8 additions and 0 deletions.
  1. +8 −0 .vimrc
8 .vimrc
@@ -159,6 +159,14 @@ noremap <Right> <Nop>
" Prevent cursor from moving when entering window focus
nnoremap <LeftMouse> ma<LeftMouse>`a

" Delete without yanking
nnoremap <leader>d "_d
vnoremap <leader>d "_d

" replace currently selected text with default register
" without yanking it
vnoremap <leader>p "_dP

" Change Vim font
if has("gui_running")
if has("gui_gtk2")

0 comments on commit 0902210

Please sign in to comment.
You can’t perform that action at this time.