How do I control how many lines Ctrl-U and Ctrl-D scroll?
:set scroll=10
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
17 results for "ctrl u"
:set scroll=10
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
set complete=.,w,b,u,t
The complete option controls which sources Vim scans when you press or for generic keyword completion.
g+ and g-
Vim's undo history is a tree, not a linear stack.
:undolist
Vim's undo history is a tree, not a linear stack.
g- and g+
Vim's undo history is a tree, not a linear stack.
<C-f> to scroll forward, <C-b> to scroll backward
How it works Vim provides two commands for scrolling by an entire screen (page) at a time: Ctrl-F (Forward) scrolls the view one full page down through the file
:set nostartofline
By default, many Vim movement commands — gg, G, Ctrl-d, Ctrl-u, Ctrl-f, Ctrl-b, and others — snap the cursor to the first non-blank character of the destina
U, u, or ~ in visual mode
How it works When you have text selected in visual mode, you can change its case with three simple keys: U - Convert the entire selection to UPPERCASE u - Conve
<C-u>
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
<C-v>u{code}
In insert mode, followed by u and a 4-digit hex code inserts the Unicode character with that code point.
<C-r>
The (Ctrl+r) command redoes the last change that was undone with u.
:'<,'>!command
How it works Vim can pipe selected text through any external shell command, replacing the selection with the command's output.
<C-t> / <C-d>
While in Insert mode, you can adjust indentation without switching back to Normal mode.
<Cmd>
The pseudo-key in Neovim allows a mapping to execute an Ex command directly, without going through command-line mode.
<C-k>
Vim has a built-in digraph system that lets you type special characters using short two-character codes.
<C-d>
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
<C-v> (command-line mode)
In command-line mode (after : or /), pressing followed by any key inserts that key literally — bypassing all key notation, mappings, and special interpretatio