How do I jump forward by paragraph in Vim?
}
The } motion moves the cursor forward to the next blank line, effectively jumping to the next paragraph.
1044 results for "i" a""
}
The } motion moves the cursor forward to the next blank line, effectively jumping to the next paragraph.
ce
The ce command changes from the cursor position to the end of the current word.
<C-r><C-f>
While typing a command, inserts the filename under the cursor in the buffer at the command-line prompt.
qqq qq{commands}@qq @q
A recursive macro calls itself at the end of its recording, causing it to repeat automatically until a motion fails (like j at the last line).
:set statusline=%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
Vim's built-in statusline option lets you build a custom status bar that displays exactly the information you want — without any plugin.
:command -complete=file -nargs=1 E edit <args>
When defining custom commands with :command, the -complete option adds tab completion for arguments.
command-line #command-line #completion #custom-command #tab-complete
:g/^$/d
The :g/^$/d command deletes every blank line in the file using Vim's powerful global command.
:bufdo %s/old/new/ge | update
The :bufdo command executes an Ex command in every loaded buffer.
buffers-windows #buffers #ex-commands #editing #substitution
:nnoremap <expr> j (v:count == 0 ? 'gj' : 'j')
Expression mappings use the flag to evaluate a Vimscript expression at the time the key is pressed.
:let @/ = 'pattern'
Writing to the @/ register via :let @/ = 'pattern' sets Vim's last-search pattern directly — without performing a search or moving the cursor.
~
The ~ command toggles the case of the character under the cursor — uppercase becomes lowercase and vice versa — then advances the cursor one position to the
:g/start/,/end/d
The :g (global) command can operate on ranges, not just single lines.
/pattern<CR>cgnreplacement<Esc>.
The gn text object selects the next search match, and cgn changes it.
:lua vim.api.nvim_open_win(0, true, {relative='editor', width=80, height=20, row=5, col=10})
Neovim's floating windows hover above the main layout, creating popup-like UI elements.
diw
The diw command deletes the inner word under the cursor.
y (in visual mode)
In visual mode, pressing y yanks (copies) the selected text into the default register.
g<C-g>
While shows basic file info (filename, line count, position), g provides a much more detailed statistical breakdown of your file or visual selection.
/foo\_.*bar
Vim's default .
:keeppatterns %s/old/new/g
The :keeppatterns modifier runs any Ex command without modifying Vim's last search pattern (stored in @/).
command-line #search #ex-commands #command-line #substitute #registers
\C
Vim's \C and \c atoms let you override ignorecase and smartcase on a per-pattern basis.