How do I break a line at the cursor position without entering Insert mode?
r<CR>
You can split a line at the cursor without entering Insert mode by using r.
396 results for "it at"
r<CR>
You can split a line at the cursor without entering Insert mode by using r.
ma and 'a
The ma command sets a mark named a at the current cursor position.
qaA;<Esc>jq
This macro appends a semicolon to the current line and moves down, ready to repeat.
/pattern/e
Search offsets let you place the cursor at a specific position relative to the match.
:e +{line} {file}
The :edit command accepts a +{cmd} prefix that executes an Ex command immediately after the file is loaded.
command-line #buffers #ex-commands #navigation #command-line
"=
The expression register ("=) lets you evaluate any Vim expression and insert its result as text.
:set scrolloff=999
By default, Vim only scrolls the viewport when the cursor reaches the very top or bottom of the screen.
navigation #navigation #scrolling #config #cursor #scrolloff
:cdo s/old/new/ | update
:cdo {cmd} executes a command at every entry in the quickfix list, visiting each location in turn.
<C-r>=system("date")<CR>
The expression register (=) is one of Vim's most powerful yet underused features.
<C-v>jj$A;
Visual block mode normally selects a fixed-width column, which makes appending tricky when lines have different lengths.
qa ... q ... @a
Macros let you record a sequence of commands and replay them.
q/
How it works Vim keeps a history of all your search patterns.
:Gedit HEAD~3:%
The vim-fugitive plugin lets you open any version of any file from your Git history directly in a Vim buffer using the :Gedit command.
:set wrap! or :set nowrap
How it works By default, Vim wraps long lines that extend past the window width, displaying them across multiple screen lines.
<C-v>jj$A text<Esc>
Visual block mode combined with $A lets you append text to the end of multiple lines simultaneously, even when those lines have different lengths.
visual-mode #editing #visual-mode #block-mode #productivity #insert-mode
<C-v>jjjI
Visual block mode combined with I lets you insert the same text at the beginning of multiple lines simultaneously.
:{line}put {register}
How it works The :put Ex command pastes the contents of a register after a specified line.
zz / zt / zb
Vim's z scroll commands reposition the screen relative to the cursor without moving the cursor itself.
navigation #navigation #scrolling #viewport #cursor-position
w vs W, b vs B, e vs E
Vim distinguishes between "words" (sequences of keyword characters) and "WORDS" (sequences of non-blank characters).
:set textwidth=80
The textwidth option sets the maximum width for text.