1
0
Fork 0

add binds for not overwriting unnamed buffer

This commit is contained in:
Luca Bilke 2022-08-08 17:42:40 +02:00
parent 67b52b5b66
commit 03be42ff58
1 changed files with 21 additions and 3 deletions

View File

@ -145,7 +145,13 @@ lvim.keys.normal_mode = {
["<C-.>"] = ":bn<CR>",
["<C-,>"] = ":bp<CR>",
["<S-Up>"] = "<C-U>",
["<S-Down>"] = "<C-D>"
["<S-Down>"] = "<C-D>",
["<C-Y>"] = "\"xy",
["<C-S-Y>"] = "\"xY",
["<C-X>"] = "\"xx",
["<C-S-X>"] = "\"xX",
["<C-P>"] = "\"xp",
["<C-S-P>"] = "\"xP",
}
lvim.keys.term_mode = {
["<c-q>"] = ":lua Custom_Close()<CR>",
@ -158,7 +164,13 @@ lvim.keys.visual_mode = {
["<"] = "<gv",
[">"] = ">gv",
["<S-Up>"] = "<C-U>",
["<S-Down>"] = "<C-D>"
["<S-Down>"] = "<C-D>",
["<C-Y>"] = "\"xy",
["<C-S-Y>"] = "\"xY",
["<C-X>"] = "\"xx",
["<C-S-X>"] = "\"xX",
["<C-P>"] = "\"xp",
["<C-S-P>"] = "\"xP",
}
lvim.keys.visual_block_mode = {
["<c-s>"] = "<ESC>:w<CR>",
@ -166,7 +178,13 @@ lvim.keys.visual_block_mode = {
["K"] = ":move '<-2<CR>gv-gv",
["J"] = ":move '>+1<CR>gv-gv",
["<S-Up>"] = "<C-U>",
["<S-Down>"] = "<C-D>"
["<S-Down>"] = "<C-D>",
["<C-Y>"] = "\"xy",
["<C-S-Y>"] = "\"xY",
["<C-X>"] = "\"xx",
["<C-S-X>"] = "\"xX",
["<C-P>"] = "\"xp",
["<C-S-P>"] = "\"xP",
}