Mappings
General
Better Vim comes with lots of slick defaults. Here is a complete list of common mappings that you may need:
ctrl + s
: Save fileleader + eb
: Open your neovim config file (better-vim.lua
)leader + ev
: Open Better Vim default config fileleader + sv
: Reload the neovim configleader + cl
: Clear searching highlightsctrl + /
: Toggle comment line (in normal mode) or block (in visual mode)ctrl + n
: Toggle File Explorerleader + p
: Paste over a selection without losing the last copied textleader + o
: Go to older cursor positionleader + i
: Go to newer cursor positionleader + q
: Whennvim-tree
is opened, it closes the buffer without closing the window
Only available in Visual Mode
shift + j
: Move selected text one line downshift + k
: Move selected text one line up
Tip: You can use shift + v
to select the whole line and enter Visual Mode at the same time.
Navigation
ctrl + h
,j
,k
orl
: Navigate between buffers
Tabs
alt/option
+ tab number (e.g1
) : Navigate to a specific tab
If you’re using iTerm2 the mapping above will not work due some limitations with the iTerm2 built in mappings.
To customize mappings for tabs, check the custom mappings documentation page.