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.
21 results for "ctrl d"
:set scroll=10
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
:set jumpoptions+=stack
By default, Vim's jumplist can feel surprising: if you jump backward and then make a new jump, the old forward path is not always discarded like a browser histo
<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 nrformats=
The nrformats option controls which number formats (increment) and (decrement) recognize.
: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
<C-t> and <C-d>
When you're typing in insert mode and realize the current line needs more or less indentation, you don't have to leave insert mode to fix it.
<C-t> / <C-d>
While in Insert mode, you can adjust indentation without switching back to Normal mode.
<C-x><C-d>
in insert mode triggers defined identifier completion — it searches for identifiers that match the partial word before the cursor by scanning #define statemen
set complete=.,w,b,u,t
The complete option controls which sources Vim scans when you press or for generic keyword completion.
<C-i>
Every time you make a "jump" — using G, /, %, :tag, , or similar commands — Vim records your position in the jump list.
[<C-d>
Vim's [ command jumps to the first definition of the macro or identifier under the cursor, searching from the beginning of the current file and through any file
<C-d>
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
<C-w>h / <C-w>j / <C-w>k / <C-w>l
How it works Vim lets you navigate between split windows using followed by a direction key.
:cnoremap <C-a> <Home>
Vim's command line has limited navigation by default.
:set clipboard=unnamedplus
Setting clipboard=unnamedplus makes Vim's default yank and paste use the system clipboard.
"=
The expression register ("=) lets you evaluate any Vim expression and insert its result as text.
<C-u>
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
<C-v>
The (Ctrl+v) command enters visual block mode, which lets you select a rectangular column of text across multiple lines.
<C-r>= (command-line mode)
Just like = lets you insert evaluated expressions in insert mode, you can use it inside an Ex command on the command line to embed any Vimscript expression resu
<C-r>=expression<CR>
The expression register ("=) evaluates Vimscript expressions and returns the result.
registers #registers #insert-mode #expression #calculator #vimscript