dotfiles/config/linux-dev/nvim/docs/neovim-actions.md
2025-10-20 16:52:01 +03:00

4.7 KiB

-- Window Creation/Closing Ctrl-w s - Split window horizontally Ctrl-w v - Split window vertically Ctrl-w n - Create new window horizontally with empty buffer Ctrl-w c - Close current window Ctrl-w o - Close all windows except current one

-- Window Navigation Ctrl-w h - Move to window on the left Ctrl-w j - Move to window below Ctrl-w k - Move to window above Ctrl-w l - Move to window on the right

-- Window Moving/Rearranging Ctrl-w H - Move current window to far left Ctrl-w J - Move current window to bottom Ctrl-w K - Move current window to top Ctrl-w L - Move current window to far right Ctrl-w r - Rotate windows downward/rightward Ctrl-w R - Rotate windows upward/leftward Ctrl-w x - Exchange current window with next one

-- Window Resizing Ctrl-w = - Make all windows equal size Ctrl-w _ - Maximize height of current window Ctrl-w | - Maximize width of current window Ctrl-w > - Increase width by 1 column Ctrl-w < - Decrease width by 1 column Ctrl-w + - Increase height by 1 row Ctrl-w - - Decrease height by 1 row

-- Window Special Commands Ctrl-w T - Move current window to new tab Ctrl-w } - Preview definition in new window Ctrl-w z - Close preview window Ctrl-w ] - Split window and jump to definition Ctrl-w f - Split window and edit file under cursor Ctrl-w i - Split window and show declaration Ctrl-w ^ - Split window and edit alternate file

-- Tab gt :tabnext - Go to next tab gT :tabprevious - Go to previous tab {n}gt :tabnext {n} - Go to tab number {n} tn :tabnew - Create a new tab - Suggested tc :tabclose - Close current tab - Suggested to :tabonly - Close all other tabs - Suggested t{n} {n}gt - Go to tab {n} - Suggested tm. :tabmove +1 - Move tab right - Suggested tm, :tabmove -1 - Move tab left - Suggested

-- Buffer bl :ls - List all buffers - Suggested bd :bdelete - Delete current buffer - Suggested bn :bnext - Go to next buffer - Suggested bp :bprevious - Go to previous buffer - Suggested b{n} :buffer {n} - Go to buffer {n} - Suggested bb :b - Start buffer selection - Suggested bo :bufdo bd|1bd - Delete all other buffers - Suggested

-- Telescope sf telescope.find_files - Search Files sg telescope.live_grep - Search by Grep sb telescope.buffers - Search Buffers sh telescope.help_tags - Search Help sp telescope.projects - Search Projects sm telescope.marks - Search Marks sc telescope.commands - Search Commands sk telescope.keymaps - Search Keymaps ss telescope.git_status - Search Git Status sw telescope.grep_string - Search current Word sd telescope.diagnostics - Search Diagnostics sr telescope.lsp_references - Search References

-- Neo-tree e :Neotree toggle - Explorer Toggle E :Neotree focus - Explorer Focus ef :Neotree float - Explorer Float eb :Neotree buffers - Explorer Buffers eg :Neotree git_status - Explorer Git

-- Harpoon h harpoon_ui.toggle_menu - Harpoon Menu m harpoon_mark.add_file - Mark File 1 harpoon_ui.nav_file(1) - Harpoon File 1 2 harpoon_ui.nav_file(2) - Harpoon File 2 3 harpoon_ui.nav_file(3) - Harpoon File 3 4 harpoon_ui.nav_file(4) - Harpoon File 4 hn harpoon_ui.nav_next - Harpoon Next hp harpoon_ui.nav_prev - Harpoon Previous

-- Terminal tet :terminal cd %:h - Terminal in This dir ter :terminal - Terminal Regular tec :!cd %:h && - Terminal Command <C-> - Terminal Normal Mode <C-> - Terminal Window Command

-- LSP gd vim.lsp.buf.definition - Goto Definition gr vim.lsp.buf.references - Goto References K vim.lsp.buf.hover - Hover Documentation rn vim.lsp.buf.rename - Rename ca vim.lsp.buf.code_action - Code Action f vim.lsp.buf.format - Format