Skip to content

NeoVim Cheatsheet

Henrique A. Lavezzo edited this page Jun 26, 2024 · 1 revision
Keybinding Action Mode
<C-n> Toggle NERDTree Normal
<leader>nf Focus the opened file in NERDTree Normal
<leader>yr Copy relative path of the opened file Normal
<leader>ya Copy absolute path of the opened file Normal
<S-A-Left> Move to the beginning of the line Normal, Insert, Visual
<S-A-Right> Move to the end of the line Normal, Insert, Visual
<C-A-Up> Move to the previous paragraph Normal
<C-A-Down> Move to the next paragraph Normal
<C-u> Move up 10 lines Normal
<C-d> Move down 10 lines Normal
<leader>gg Move to the top of the file Normal
<leader>G Move to the bottom of the file Normal
<C-c> Copy selected text to clipboard Visual
<C-x> Cut selected text to clipboard Visual
<C-v> Paste text from clipboard Normal, Insert
<A-k> Move current line or selection up Normal, Visual
<A-j> Move current line or selection down Normal, Visual
<leader>a Select all content of the file Normal
<S-Tab> Move tab back Insert
<A-,> Move to the previous buffer Normal
<A-.> Move to the next buffer Normal
<A-<> Move current buffer to the previous position Normal
<A->> Move current buffer to the next position Normal
<A-1> to <A-0> Go to buffer 1 to 10 or last Normal
<A-p> Pin the current buffer Normal
<A-c> Close the current buffer Normal
<A-s-c> Restore the most recently closed buffer Normal
<C-p> Pick a buffer Normal
<C-x> Delete picked buffer Normal
<Space>bb Order buffers by buffer number Normal
<Space>bn Order buffers by name Normal
<Space>bd Order buffers by directory Normal
<Space>bl Order buffers by language Normal
<Space>bw Order buffers by window number Normal
<C-d>, <C-S-L> Start multi-cursor, select all occurrences Various
<C-x>, <C-S-k> Skip, remove current cursor Various
<A-Down>, <A-Up> Add cursor down, add cursor up Various
<leader>ff Find files with Telescope Normal
<leader>fg Live grep with Telescope Normal
<leader>fb List buffers with Telescope Normal
<leader>fh Help tags with Telescope Normal
Clone this wiki locally