summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-06-23 17:01:34 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-06-23 17:01:34 +0200
commit2a368f55d22d2ab889f25ab0320f303277358612 (patch)
tree162744ca4570903a4ed940d6401974a982ff69bd /vimrc
parentf6dfff5ef7a88d7ee4c7e1921975454f1b1c4b8e (diff)
downloadvim-2a368f55d22d2ab889f25ab0320f303277358612.zip
vim-2a368f55d22d2ab889f25ab0320f303277358612.tar.gz
default to cut into black hole register
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc19
1 files changed, 17 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index b947d56..e63c566 100644
--- a/vimrc
+++ b/vimrc
@@ -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