mappings: Don't yank the text after pasting in visual mode

This commit is contained in:
Akianonymus 2021-07-17 16:48:41 +05:30
parent dbc4979ebd
commit 1d7602e3e4
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ map("v", "x", [=[ "_x ]=], opt)
vim.api.nvim_set_keymap("i", "jk", "<esc>", {}) vim.api.nvim_set_keymap("i", "jk", "<esc>", {})
-- Don't copy the replaced text after pasting in visual mode
map("v", "p", '"_dP', opt)
-- OPEN TERMINALS -- -- OPEN TERMINALS --
map("n", "<C-l>", [[<Cmd>vnew term://bash <CR>]], opt) -- term over right map("n", "<C-l>", [[<Cmd>vnew term://bash <CR>]], opt) -- term over right
map("n", "<C-x>", [[<Cmd> split term://bash | resize 10 <CR>]], opt) -- term bottom map("n", "<C-x>", [[<Cmd> split term://bash | resize 10 <CR>]], opt) -- term bottom