finger crackers to access the clipboard

This commit is contained in:
2020-11-18 16:31:03 +01:00
parent 497e03cb91
commit 365770038c

View File

@@ -69,6 +69,10 @@ nnoremap <silent> gb :bn<CR>
noremap p p`[ noremap p p`[
noremap P P`[ noremap P P`[
xnoremap "+y y:call system("wl-copy", @")<cr>
nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
augroup vimrc augroup vimrc
autocmd! autocmd!
autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown autocmd BufNewFile,BufRead *.pdc,*.pandoc setlocal filetype=markdown