How do I jump to the start or end of the last visual selection?
`< and `>
The ` ` marks automatically track the boundaries of the last visual selection.
2277 results for "@a"
`< and `>
The ` ` marks automatically track the boundaries of the last visual selection.
:set statusline=%f\ %m%r%=%l/%L
The statusline option controls what information is shown in the status bar at the bottom of each window.
:cnext and :cprev
The quickfix list holds a set of file positions, typically from compiler errors, grep results, or other tools.
:cdo s/old/new/g
The :cdo command executes a command on every entry in the quickfix list.
cit
The cit command deletes everything between the nearest pair of HTML/XML tags and drops you into insert mode, ready to type the replacement.
vim.lsp.buf.definition()
Neovim has a built-in LSP (Language Server Protocol) client that provides IDE-like features without plugins.
zb
The zb command redraws the screen with the current line at the bottom of the window.
:set hidden
By default, Vim refuses to let you switch away from a buffer that has unsaved changes, forcing you to save or discard with :w or :e! before moving on.
:s/pattern/replace/flags
The substitute command supports several flags that modify its behavior.
:%s/old/new/g
The :%s/old/new/g command replaces all occurrences of old with new across every line in the file.
"1p through "9p
Registers 1-9 contain the last 9 deletions or changes that are at least one line long.
:execute 'normal! ' . count . 'j'
The :execute command evaluates a string as an Ex command, enabling dynamic command construction.
:call matchadd('Search', 'pattern')
The matchadd() function lets you add persistent highlights to patterns without affecting the search register.
dd
The dd command deletes the entire current line, regardless of where the cursor is positioned on that line.
cia (with targets.vim) or daa
While Vim doesn't have a built-in argument text object, the targets.
:highlight MyGroup guifg=#ff0000 guibg=NONE gui=bold
The :highlight command lets you define custom colors for syntax elements, UI components, and your own highlight groups.
<C-c>
exits insert mode immediately but silently skips two important side effects that (and its equivalent ) always trigger: abbreviation expansion and InsertLeave au
:autocmd WinResized * wincmd =
When you resize your terminal window, Vim's split layout can become unbalanced.
D
The D command deletes everything from the cursor position to the end of the current line.
:echo @/
The / register holds the most recent search pattern.