commit 4f65604fd218b1496fee482c3dc276b62a3bdd35
parent 88edddee733cb8cd99b0924063e47b664543a9fe
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 20 Mar 2019 20:50:35 +0100
Modified vim paste map
Former-commit-id: 14cbb91332dcf0d5864d0e964ee3a6e55ffcd56d
Diffstat:
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/vim/map.vimrc b/vim/map.vimrc
@@ -91,16 +91,6 @@ nnoremap <expr> <silent> 0 col('.') == match(getline('.'),'\S')+1 ? '0' : '^'
" Highlight last inserted text
nnoremap gV `[v`]
-" Delete without yanking to clipboard
-nnoremap <leader>d "_d
-
-" Change without yanking to clipboard
-nnoremap <leader>C "_c
-
-" Replace without yanking to clipboard
-vnoremap <leader>p "_dP
-nnoremap <leader>p "_ddP
-
" Save in insert mode
inoremap <C-Z> <ESC>:w<CR>a
@@ -114,6 +104,11 @@ nnoremap <C-E><C-M> :vsplit $CONF_DIR/vim/map.vimrc<CR>
nnoremap <C-E><C-P> :vsplit $CONF_DIR/vim/plugins.vimrc<CR>
nnoremap <C-E><C-L> :vsplit $CONF_DIR/vim/pluginconf.vimrc<CR>
+nnoremap <leader>y "*y
+nnoremap <leader>p "*p
+nnoremap <leader>P "*P
+nnoremap <leader>ny "_y
+
" This should be a plugin but for now...
" time (hh:mm-hh:mm) to duration in hours
nnoremap <leader>td 0f-l"aywf:l"byw0"cywf:l"dywA (=((a*60+b)-(c*60+d))/60.0
)F.r:wyw"aywcw=0.a*60
F.2xih0:s/:0h/h