Egrepify and some keybindings

This commit is contained in:
Fabian Becker
2023-12-18 08:49:54 +01:00
parent 814000d6e8
commit 5782602a20
9 changed files with 103 additions and 30 deletions

View File

@@ -40,6 +40,12 @@ nnoremap('<leader>tk', '<C-w>t<C-w>K')
-- Keybindings below this are neovim cli only
if vim.g.vscode then
-- Toggle Comment
vim.keymap.set('x', 'gc', '<Plug>VSCodeCommentary', {})
vim.keymap.set('n', 'gc', '<Plug>VSCodeCommentary', {})
vim.keymap.set('o', 'gc', '<Plug>VSCodeCommentary', {})
vim.keymap.set('n', 'gcc', '<Plug>VSCodeCommentaryLine', {})
return
end
@@ -65,6 +71,16 @@ nnoremap('<S-TAB>', ':bprevious<CR>')
nnoremap('[q', ':cprev<CR>')
nnoremap(']q', ':cnext<CR>')
-- no arrow keys
nnoremap("<up>", "<nop>")
nnoremap("<down>", "<nop>")
nnoremap("<left>", "<nop>")
nnoremap("<right>", "<nop>")
inoremap("<up>", "<nop>")
inoremap("<down>", "<nop>")
inoremap("<left>", "<nop>")
inoremap("<right>", "<nop>")
-- Tagbar
nnoremap('<Leader>hl', ':nohl<CR>')