How do I scroll up half a page in Vim?
<C-u>
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
27 results for "ctrl b"
<C-u>
The (Ctrl+u) command scrolls the window up by half a screen, moving the cursor along with it.
:let @q = "dd"
Macros are just strings stored in named registers.
:call setreg('q', 'dd')
The setreg() VimScript function lets you populate any register with arbitrary content directly from the command line or a script — no recording required.
<C-d>
The (Ctrl+d) command scrolls the window down by half a screen, moving both the viewport and the cursor.
<C-o>
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
<C-^>
Pressing (Ctrl-6 on most keyboards) instantly toggles between the current buffer and the alternate file — the last file you were editing.
buffers-windows #navigation #buffers #normal-mode #productivity #windows
<C-v>jj"ay then "ap
How it works Vim registers remember not just the text content but also the type of selection that was used to yank it: characterwise, linewise, or blockwise.