Tue, 14 Feb 2023 02:39:04 -0600
Add more plain vim plugins
1015 | 1 | |
2 | local map = vim.keymap | |
3 | local opts = {noremap = true, silent = true} | |
4 | ||
5 | map.set("n", "<F2>", ":20Lexplore<CR>", opts) | |
6 | map.set("n", "<F3>", "n", opts) | |
7 | map.set("n", "<S-F3>", "N", opts) | |
8 | map.set("", "<F4>", ":let v:hlsearch = !v:hlsearch<CR>", opts) | |
1020
b1b644e9825d
Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents:
1017
diff
changeset
|
9 | map.set("n", "<F5>", ":UndotreeToggle<CR>", opts) |
b1b644e9825d
Add more plain vim plugins
Meredith Howard <mhoward@roomag.org>
parents:
1017
diff
changeset
|
10 | map.set("n", "<F8>", ":TagbarToggle<CR>", opts) |
1015 | 11 | |
12 | -- Allow :noh even in insert mode | |
13 | map.set("i", "<F4>", "<C-O><F4>") | |
14 | ||
15 | -- cover for search habit | |
1017 | 16 | map.set("c", "<F3>", "<CR>", opts) |
17 | ||
18 | map.set("n", "<leader>cd", ":cd %:p:h<CR>:pwd<CR>", opts) | |
1015 | 19 | |
1017 | 20 | map.set("n", "<C-h>", "<C-w>h", opts) |
21 | map.set("n", "<C-j>", "<C-w>j", opts) | |
22 | map.set("n", "<C-k>", "<C-w>k", opts) | |
23 | map.set("n", "<C-l>", "<C-w>l", opts) | |
24 | map.set("n", "<C-\\>", "<C-w>p", opts) | |
1015 | 25 | |
1017 | 26 | map.set("n", "gb", "<C-^>", opts) |
27 | map.set("n", "gB", ":ls<CR>:b ", {noremap = true}) |