How do I define a custom user command in Neovim Lua config that accepts arguments and has a description?
vim.api.nvim_create_user_command()
Neovim's Lua API provides vim.
254 results for ":split"
vim.api.nvim_create_user_command()
Neovim's Lua API provides vim.
:b {number}
The :b command followed by a buffer number switches directly to that buffer.
:windo diffthis
The :windo diffthis command activates Vim's built-in diff mode across all visible windows, highlighting the differences between them.
:%s/pattern/\r/g
In the replacement part of :s, \r inserts a newline.
<C-w>r
The r command rotates windows in the current row or column.
:Telescope find_files
Telescope is a highly extensible fuzzy finder for Neovim.
:Gdiffsplit
The vim-fugitive plugin provides :Gdiffsplit (and its vertical variant :Gvdiffsplit) to open a side-by-side diff view comparing the working tree version of a fi
:lopen / :lnext / :lprev
The location list is a per-window variant of the quickfix list.
buffers-windows #navigation #quickfix #ex-commands #windows #productivity
/pattern\_s\+next
Vim's regular expressions support multi-line matching through underscore-prefixed atoms.
:Files
The fzf.
gF
The gF command opens the file under the cursor and jumps to the line number that appears after the filename.
gJ
The gJ command joins the current line with the line below it without inserting any space between them.
:tabnew / gt / gT
Vim's tab pages let you organize your workspace into separate views, each containing its own window layout.
buffers-windows #buffers #windows #tabs #navigation #productivity
:autocmd WinResized * wincmd =
When you resize your terminal window, Vim's split layout can become unbalanced.
:lvimgrep /pattern/ %
While :vimgrep populates the global quickfix list, :lvimgrep uses the window-local location list instead.
:Rg
The fzf.
:packadd termdebug | Termdebug
For quick debugging without leaving Vim, the built-in termdebug plugin wires a GDB session directly into your editing workflow.
:put =map(getreg('a', 1, 1), 'toupper(v:val)')
By using getreg() with the list flag and applying map(), you can transform register contents with any Vimscript function before pasting.
r<CR>
You can split a line at the cursor without entering Insert mode by using r.
:set iskeyword+=-
By default, Vim treats hyphens, dots, and many punctuation characters as word boundaries.