3 ms·
After reading this my mind went to the same place of viewing the clipboard as a stack. Wonder if that’s possible system-wide. One solution I have in vim which
by spectaclepiece 5y ago
After reading this my mind went to the same place of viewing the clipboard as a stack. Wonder if that’s possible system-wide.
One solution I have in vim which I always forget to use is adding an additional d or p to use a secondary paste buffer:
vnoremap dd "ad
nnoremap ddd "add
nnoremap pp "ap
- avnigo 5y agoYou can also move lines up and down using the move command: :[range]m[ove] {address} Some common remaps: vnoremap <c-j> :m '>+1<CR>gv=gv vnoremap <c-k> :m '<-2<CR>gv=gv inoremap <c-j> <Esc>:m .+1<CR>==gi inoremap <c-k> <Esc>:m .-2<CR>==gi nnoremap <leader>j :m .+1<CR>== nnoremap <leader>k :m .-2<CR>==