Add keymaps for searching visible viewport and visual selection
This commit is contained in:
parent
22e7caa76e
commit
18d9b0cf09
1 changed files with 15 additions and 10 deletions
|
|
@ -73,6 +73,9 @@ utils.foreach({
|
||||||
{ "<F10>", ":3tabn<CR>", { silent = true }, },
|
{ "<F10>", ":3tabn<CR>", { silent = true }, },
|
||||||
{ "<F11>", ":4tabn<CR>", { silent = true }, },
|
{ "<F11>", ":4tabn<CR>", { silent = true }, },
|
||||||
{ "<F12>", ":5tabn<CR>", { silent = true }, },
|
{ "<F12>", ":5tabn<CR>", { silent = true }, },
|
||||||
|
|
||||||
|
{ "z/", '/\\%><C-r>=line("w0")-1<CR>l\\%<<C-r>=line("w$")+1<CR>l', { silent = false, desc = "Search in viewport" }, },
|
||||||
|
{ "z?", '?\\%><C-r>=line("w0")-1<CR>l\\%<<C-r>=line("w$")+1<CR>l', { silent = false, desc = "Search in viewport" }, }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -88,6 +91,8 @@ utils.foreach({
|
||||||
-- Marks are less frequently used than leaping, also, less relevant with arrow and fzf navigation.
|
-- Marks are less frequently used than leaping, also, less relevant with arrow and fzf navigation.
|
||||||
-- Prioritize regular m for leaping, and <leader>m for setting marks.
|
-- Prioritize regular m for leaping, and <leader>m for setting marks.
|
||||||
{ "<leader>m", "m", },
|
{ "<leader>m", "m", },
|
||||||
|
{ "/", "<C-\\><C-n>`</\\%V", },
|
||||||
|
{ "?", "<C-\\><C-n>`>?\\%V", },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue