✨ Added better keybindings to neovim
This commit is contained in:
parent
22856a2223
commit
dcc2b80b52
2 changed files with 11 additions and 1 deletions
|
|
@ -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]]
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue