Added better keybindings to neovim

This commit is contained in:
z3rOR0ne 2022-09-07 01:43:27 -07:00
parent 22856a2223
commit dcc2b80b52
2 changed files with 11 additions and 1 deletions

View file

@ -15,7 +15,13 @@ keymap('n', '<a-right>', '<c-w>:tabnext<CR>', {})
keymap('n', '<c-h>', '<c-w>:wincmd h<CR>', {}) keymap('n', '<c-l>', '<c-w>:wincmd l<CR>', {})
-- open fzf
keymap('n', '<c-p>', '<c-w>:Files<CR>', {})
vim.cmd[[nnoremap fzf :silent :Files]]
-- open ripgrep
vim.cmd[[nnoremap rg :silent :Rg]]
-- invoke Neoformat
vim.cmd[[nnoremap nf :silent :Neoformat]]
-- Toggle NERDCommenter with Ctrl + c
vim.cmd[[:map <C-c> <Plug>NERDCommenterToggle]]

View file

@ -94,6 +94,10 @@ I only really use this for muliple commenting out of lines
NORMAL MODE
nf Simply typing this in NORMAL MODE will invoke Neoformat, simply hit enter afterwards
fzf Simply typing this in NORMAL MODE will invoke FuzzyFileFinder, simply hit enter afterwards
rg Simply typing this in NORMAL MODE will invoke RipGrep, simply hit enter afterwards
CTRL + x removes highlighting from previous search results
CTRL + c Comment out line (use in conjunction with CTRL + V for multiple lines)