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.
870 results for "it at"
r<CR>
You can split a line at the cursor without entering Insert mode by using r.
<C-v>jjI
Visual block mode () lets you select a rectangular region across lines.
:set showbreak=+++
When wrap is enabled, Vim wraps long lines at the screen edge, but there is no built-in visual marker to distinguish a wrapped continuation from a brand-new lin
:0put
The :put Ex command inserts register contents as a new line below the specified line number.
zs and ze
When nowrap is set and lines extend beyond the screen width, zs and ze snap the horizontal scroll position so the cursor sits exactly at the left or right edge
:set whichwrap+=<,>,h,l
By default, h and l stop at line boundaries.
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
zt
The zt command repositions the viewport so that the line where your cursor sits moves to the top of the screen, without changing your cursor position within the
navigation #navigation #scrolling #normal-mode #viewport #productivity
:set colorcolumn=80
The :set colorcolumn=80 command displays a vertical highlight at column 80, giving you a visual guide for line length.
<C-a> (command-line)
Pressing on the command line expands all current completion matches into the command at once, rather than cycling through them one at a time with .
:set linebreak
By default, when wrap is enabled, Vim wraps long lines at the window edge — which can split words in the middle.
<C-a> (command-line mode)
In command-line mode, inserts all completions for the word before the cursor at once, as a space-separated list.
:Gedit HEAD~1:%
When you are deep in a refactor, you often need to compare the current buffer with an older version of the same file.
5g;
Most users know g; moves backward through the changelist, but fewer people use a count with it.
zr and zm
The zr and zm commands let you incrementally adjust the global fold depth across the entire buffer — one level at a time.
zm
Instead of jumping between fully open (zR) and fully closed (zM), zm and zr let you step through fold levels one at a time.
A
The A command moves the cursor to the end of the current line and enters insert mode.
zt / zb
The zt and zb commands scroll the viewport so the current cursor line appears at the top or bottom of the screen respectively, without moving the cursor.
##
The ## special token expands to the names of all files currently in Vim's argument list.
\%l and \%c
Vim's \%l and \%c pattern atoms anchor a search to a particular line number or column, enabling surgical searches and substitutions that standard regex cannot e