mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
vim: fix copy/paste shortcuts
use map instead of noremap so that <leader>Y can be also used in visual mode
This commit is contained in:
parent
7f2e0333fd
commit
9ac97f0af7
|
@ -1,7 +1,7 @@
|
|||
"""" Leader shortcuts
|
||||
let mapleader = ","
|
||||
" also use space as leader
|
||||
nmap <Space> <leader>
|
||||
map <Space> <leader>
|
||||
|
||||
nmap <leader>w :w!<CR>
|
||||
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!
|
||||
|
@ -129,8 +129,8 @@ elseif s:uname == "Linux"
|
|||
autocmd TextYankPost * call s:WaylandYank()
|
||||
augroup END
|
||||
|
||||
nnoremap "+p :<C-U>let @"=substitute(system('wl-paste --no-newline'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'p'<cr>
|
||||
nnoremap "+P :<C-U>let @"=substitute(system('wl-paste --no-newline'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'P'<cr>
|
||||
map "+p :<C-U>let @"=substitute(system('wl-paste --no-newline'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'p'<cr>
|
||||
map "+P :<C-U>let @"=substitute(system('wl-paste --no-newline'), '<C-v><C-m>', '', 'g') \| exec 'normal! ' . v:count1 . 'P'<cr>
|
||||
else
|
||||
"" Unknown platform
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user