# nvim keybindings ```txt n * nohlsearch n tc * CloakToggle Toggle Cloak n zg * :Rg FZF: search with rg (aka live grep). n zm * :Maps FZF: search mappings. n zh * :History FZF: search history of opened files n zb * :Buffers FZF: search open buffers. n zt * :Windows FZF: search open tabs. n zc * :Commands FZF: search commands. n zf * :FZF FZF: search for files in given path. f * [F]ormat buffer n e * n 4 * harpoon to file 4 n 3 * harpoon to file 3 n 2 * harpoon to file 2 n 1 * harpoon to file 1 n xn * harpoon to next file n xN * harpoon to previous file n xa * harpoon quick menu n xA * harpoon file n 5 * harpoon to file 5 n tz * Toggle ZenMode n qq * wq! Quickly Quit n bq * Open diagnostic [Q]uickfix list n be * Show diagnostic [E]rror messages x # * :help v_#-default o % (MatchitOperationForward) x % (MatchitVisualForward) n % (MatchitNormalForward) n & * :&& :help &-default x * * :help v_star-default x @ * mode() == 'V' ? ':normal! @'.getcharstr().'' : '@' :help v_@-default x Q * mode() == 'V' ? ':normal! @=reg_recorded()' : 'Q' :help v_Q-default n Y * y$ :help Y-default o [% (MatchitOperationMultiBackward) x [% (MatchitVisualMultiBackward) n [% (MatchitNormalMultiBackward) n [d * Jump to the previous diagnostic o ]% (MatchitOperationMultiForward) x ]% (MatchitVisualMultiForward) n ]% (MatchitNormalMultiForward) n ]d * Jump to the next diagnostic x a% (MatchitVisualTextObject) o al Around last textobject o an Around next textobject x al Around last textobject x an Around next textobject o a Around textobject x a Around textobject n dj * Go to next [D]iagnostic message n dk * Go to previous [D]iagnostic message o g% (MatchitOperationBackward) x g% (MatchitVisualBackward) n g% (MatchitNormalBackward) o g] Move to right "around" x g] Move to right "around" n g] Move to right "around" o g[ Move to left "around" x g[ Move to left "around" n g[ Move to left "around" n gcA * Comment insert end of line n gcO * Comment insert above n gco * Comment insert below x gb * (comment_toggle_blockwise_visual) Comment toggle blockwise (visual) n gbc * Comment toggle current block n gb * (comment_toggle_blockwise) Comment toggle blockwise o gc * Comment textobject n gcc * Comment toggle current line x gc * (comment_toggle_linewise_visual) Comment toggle linewise (visual) n gc * (comment_toggle_linewise) Comment toggle linewise x gx * Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) n gx * Opens filepath or URI under cursor with the system handler (file explorer, web browser, …) o il Inside last textobject o in Inside next textobject x il Inside last textobject x in Inside next textobject o i Inside textobject x i Inside textobject n shn * Highlight next surrounding n sFn * Find next left surrounding n sfn * Find next right surrounding n srn * Replace next surrounding n sdn * Delete next surrounding n shl * Highlight previous surrounding n sFl * Find previous left surrounding n sfl * Find previous right surrounding n srl * Replace previous surrounding n sdl * Delete previous surrounding x sa * :lua MiniSurround.add('visual') Add surrounding to selection n sn * Update `MiniSurround.config.n_lines` n sh * Highlight surrounding n sF * Find left surrounding n sf * Find right surrounding n sr * Replace surrounding n sd * Delete surrounding n sa * Add surrounding x (MatchitVisualTextObject) (MatchitVisualMultiBackward)o(MatchitVisualMultiForward) o (MatchitOperationMultiForward) * :call matchit#MultiMatch("W", "o") o (MatchitOperationMultiBackward) * :call matchit#MultiMatch("bW", "o") x (MatchitVisualMultiForward) * :call matchit#MultiMatch("W", "n")m'gv`` x (MatchitVisualMultiBackward) * :call matchit#MultiMatch("bW", "n")m'gv`` n (MatchitNormalMultiForward) * :call matchit#MultiMatch("W", "n") n (MatchitNormalMultiBackward) * :call matchit#MultiMatch("bW", "n") o (MatchitOperationBackward) * :call matchit#Match_wrapper('',0,'o') o (MatchitOperationForward) * :call matchit#Match_wrapper('',1,'o') x (MatchitVisualBackward) * :call matchit#Match_wrapper('',0,'v')m'gv`` x (MatchitVisualForward) * :call matchit#Match_wrapper('',1,'v'):if col("''") != col("$") | exe ":normal! m'" | endifgv`` n (MatchitNormalBackward) * :call matchit#Match_wrapper('',0,'n') n (MatchitNormalForward) * :call matchit#Match_wrapper('',1,'n') n * :Files FZF: search for files starting at current directory. o (fzf-maps-o) * :call fzf#vim#maps('o', 0) x (fzf-maps-x) * :call fzf#vim#maps('x', 0) n (fzf-maps-n) * :call fzf#vim#maps('n', 0) n (fzf-normal) * n (fzf-insert) * i x (comment_toggle_blockwise_visual) * lua require("Comment.api").locked("toggle.blockwise")(vim.fn.visualmode()) Comment toggle blockwise (visual) x (comment_toggle_linewise_visual) * lua require("Comment.api").locked("toggle.linewise")(vim.fn.visualmode()) Comment toggle linewise (visual) n (comment_toggle_blockwise_count) * Comment toggle blockwise with count n (comment_toggle_linewise_count) * Comment toggle linewise with count n (comment_toggle_blockwise_current) * Comment toggle current block n (comment_toggle_linewise_current) * Comment toggle current line n (comment_toggle_blockwise) * Comment toggle blockwise n (comment_toggle_linewise) * Comment toggle linewise n * n * w Save file n * n * n * n * echo "Use j to move!!" n * echo "Use k to move!!" n * echo "Use l to move!!" n * echo "Use h to move!!" n d Show diagnostics under the cursor n d * Show diagnostics under the cursor n * ``` - Generated on Mon 22 Jul 2024 17:32:22 EEST