How do I quickly jump between method or function definitions in code?
]m and [m
The ]m and [m motions let you jump forward and backward between the start of method or function definitions.
870 results for "it at"
]m and [m
The ]m and [m motions let you jump forward and backward between the start of method or function definitions.
:'a,'bs/old/new/g
Named marks can serve as range endpoints for any Ex command, including :substitute.
<C-w>}
How it works The } command opens a preview window showing the tag definition of the word under your cursor.
matchadd('Group', 'pattern', priority)
matchadd() accepts an optional third argument: a priority integer that controls which match wins when two patterns cover the same text.
:5t.
The :t ex command (also spelled :copy) copies a range of lines to a target address without touching any register.
zl
When nowrap is set and lines extend beyond the screen width, Vim provides dedicated horizontal scroll commands.
:set display=lastline
By default, when the last visible line of a window is too long to fit on screen, Vim shows @@@ in its place — hiding the content entirely.
<C-y> (above) / <C-e> (below)
In insert mode, inserts the character from the same column one line above, and inserts the character from the same column one line below.
m{A-Z}
Uppercase marks (A-Z) are global marks that remember both the file and the cursor position.
vat
The vat command visually selects the nearest enclosing HTML or XML tag and all of its contents, including the opening and closing tags themselves.
visual-mode #visual-mode #text-objects #editing #normal-mode
mf mt mc
Netrw, Vim's built-in file browser, supports a full marking system that lets you select multiple files and then perform bulk copy, move, or delete operations on
qq{commands}@qq
A recursive macro calls itself at the end of its own definition, causing it to run repeatedly until Vim hits an error — such as reaching the end of the file o
v_o
When you start a visual selection, the cursor is at one end and the anchor is at the other.
\%>20c
The \%Nc, \%>Nc, and \%20c — match only after column 20 (i.
z{N}<CR>
The z{N} command sets the current window's height to exactly N lines and simultaneously positions the current line at the top of the window.
vim.api.nvim_create_namespace('my_plugin')
Neovim's extmark system (for highlights, virtual text, and diagnostics) uses namespaces to group related marks.
:set cmdheight=0
Setting cmdheight=0 in Neovim 0.
:set pumheight=10
By default, Vim's completion popup menu (the PUM — Pop-Up Menu) can expand to fill the entire screen if there are many candidates.
<C-e>
The command scrolls the window down one line at a time while keeping the cursor on its current line (until the cursor would go off-screen).
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).