replace return to clear highlight with escape
This commit is contained in:
parent
851bdaa611
commit
2cc5e697a9
@ -8,7 +8,7 @@ map("n", "<C-c>", "<Esc>")
|
||||
map("n", "<C-s>", "<cmd>w<CR>")
|
||||
map("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
map("n", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
map("n", "<CR>", '{->v:hlsearch ? ":nohl\\<CR>" : "\\<CR>"}()', { expr = true })
|
||||
map("n", "<Esc>", '{->v:hlsearch ? ":nohl\\<CR>" : "\\<CR>"}()', { expr = true })
|
||||
map("v", "J", ":m '>+1<CR>gv=gv")
|
||||
map("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user