How do I change text from the cursor to the end of the line?
C
The C command deletes everything from the cursor position to the end of the line and places you in insert mode.
287 results for ":jumps"
C
The C command deletes everything from the cursor position to the end of the line and places you in insert mode.
gF
The gF command opens the file under the cursor and jumps to the line number that appears after the filename.
:tjump {name}
Vim's :tjump is the smarter sibling of :tag and :tselect.
g+
Vim's undo history is a tree, not a linear stack.
O (visual-block)
In Visual-Block mode (), pressing O moves the cursor to the diagonally opposite corner of the rectangular selection.
g'{mark}
Vim's standard mark-jump commands ('a, ` a `) always add the current position to the jumplist before leaping to the mark.
`.
The ` .
:set switchbuf=useopen
The switchbuf option controls how Vim decides where to display a buffer when switching to it via commands like :sb, :cc, :cn, quickfix jumps, or .
buffers-windows #buffers-windows #navigation #ex-commands #config
[* and ]*
The [ and ] motions (also written as [/ and ]/) let you jump directly to the opening / or closing / of a C-style block comment.
:set grepformat=%f:%l:%c:%m
When :grep output does not land cleanly in quickfix, the parser format is usually the missing piece.
:cfirst and :clast
:cfirst and :clast jump directly to the first or last entry in the quickfix list, skipping all intermediate results.
:keepjumps normal! gg
Sometimes you need to make a quick structural move (for example, jump to top, inspect context, then return) without polluting jump navigation history.
:keepjumps normal! gg=G<CR>
Whole-buffer reindent is common, but doing it naively can pollute your jumplist and break navigation flow during review.
,
After using f, t, F, or T for single-character motion on a line, Vim lets you repeat that character search without retyping the target.
]# and [#
Vim provides the ]# and [# motions specifically for navigating C preprocessor conditionals.
:%s/\w\+/\u&/g
Vim's substitute command supports case-conversion modifiers in the replacement string.
]m / [m
When you're reviewing or refactoring C-style code, jumping by words or paragraphs is too coarse, and search can become noisy.
navigation #navigation #motions #code-navigation #normal-mode
[z and ]z
The [z and ]z commands jump the cursor to the start and end of the innermost open fold containing the cursor.
:ijump /MySymbol/
:ijump is an include-aware jump command that searches the current file plus files discovered through your include and path settings, then jumps directly to a se
:keeppatterns normal! @q<CR>
When you replay macros from Ex commands, Vim can overwrite @/ (the last search pattern) depending on what the macro does.