vim: visual mode paste without loosing yanked text
This commit is contained in:
parent
890d2def13
commit
c924601769
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ M.setup = function()
|
||||||
-- quickly change background
|
-- quickly change background
|
||||||
map('n', '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]])
|
map('n', '<leader>bg', [[<cmd>let &background = &background ==? 'light' ? 'dark' : 'light'<cr>]])
|
||||||
|
|
||||||
|
-- don't loose the original yanked contents when pasting in visual mode
|
||||||
|
map('x', '<leader>p', [["_dP]])
|
||||||
|
|
||||||
local diagnostic = require 'fschauen.diagnostic'
|
local diagnostic = require 'fschauen.diagnostic'
|
||||||
|
|
||||||
-- navigate diagnostics
|
-- navigate diagnostics
|
||||||
|
|
Loading…
Add table
Reference in a new issue