diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-06-23 17:01:34 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-06-23 17:01:34 +0200 |
commit | 2a368f55d22d2ab889f25ab0320f303277358612 (patch) | |
tree | 162744ca4570903a4ed940d6401974a982ff69bd | |
parent | f6dfff5ef7a88d7ee4c7e1921975454f1b1c4b8e (diff) | |
download | vim-2a368f55d22d2ab889f25ab0320f303277358612.zip vim-2a368f55d22d2ab889f25ab0320f303277358612.tar.gz |
default to cut into black hole register
-rw-r--r-- | vimrc | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -87,7 +87,6 @@ hi CursorLineNr ctermbg=red hi CursorLine ctermbg=0 ctermfg=None hi ColorColumn ctermbg=7 ctermfg=None - " NonText, SpecialKey, ExtraWhitespace, ExtraOver ---------------------------- nmap <leader>l :set list!<CR> " set list listchars=tab:▸\ ,trail:·,precedes:←,extends:→,eol:↲,nbsp:␣ @@ -101,9 +100,25 @@ match ExtraWhitespace /\s\+$/ " match ExtraOver /\s\+\%#\@<!$\|\%81v.*/ +" set leader to ',' ---------------------------------------------------------- +let mapleader = "," +let g:mapleader = "," + + +" Delete default to black hole register -------------------------------------- +nnoremap x "_x +nnoremap d "_d +nnoremap D "_D +vnoremap d "_d + +vnoremap <leader>d ""d +nnoremap <leader>d ""d +nnoremap <leader>D ""D + + " CtrlP ---------------------------------------------------------------------- nmap <leader>e :CtrlP<cr> -nmap <leader>ep :CtrlPBuffer<cr> +nmap <leader>ee :CtrlPBuffer<cr> nmap <leader>em :CtrlPMixed<cr> " Autocomplete |