How do I scroll a full page up or down in Vim?
<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
category:
navigation
tags:
#navigation
#motions
#normal-mode
How do I control which sources Vim searches when triggering keyword completion with Ctrl-N?
The complete option controls which sources Vim scans when you press or for generic keyword completion.
category:
config
tags:
#completion
#config
#insert-mode
How do I make Ctrl-A and Ctrl-X increment and decrement alphabetical characters in Vim?
By default, Vim's and commands only increment and decrement numbers (decimal, hex, binary).
category:
config
tags:
#config
#editing
#normal-mode
#macros
How do I make Ctrl-A and Ctrl-X increment and decrement alphabetic characters?
By default, and only increment and decrement numbers (decimal, hex, and octal depending on format).
category:
config
tags:
#editing
#normal-mode
#config
#increment
How do I make Ctrl-O and Ctrl-I behave like browser back and forward in Vim?
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
category:
config
tags:
#config
#navigation
#jumplist
#workflow
#motions
How do I configure what types of numbers Vim recognizes when using Ctrl-A and Ctrl-X to increment or decrement?
The nrformats option controls which number formats (increment) and (decrement) recognize.
category:
config
tags:
#config
#editing
#normal-mode
How do I make Vim preserve the cursor column when jumping between lines?
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
category:
config
tags:
#navigation
#config
#motions
#normal-mode
How do I control which number formats Vim uses when incrementing and decrementing with Ctrl-A and Ctrl-X?
The nrformats option tells Vim how to interpret numbers when you press (increment) or (decrement).
category:
config
tags:
#config
#editing
#increment
#numbers
#normal-mode
How do I control how many lines Ctrl-U and Ctrl-D scroll?
The scroll option determines how many lines (scroll up) and (scroll down) move the viewport.
category:
config
tags:
#config
#navigation
#scrolling
#ctrl-u
#ctrl-d
How do I add Emacs-style editing shortcuts to Vim's command line?
Vim's command line has limited navigation by default.
category:
command-line
tags:
#command-line
#mapping
#cnoremap
#editing
How do I jump forward through the jump list after going back with Ctrl-O?
Every time you make a "jump" — using G, /, %, :tag, , or similar commands — Vim records your position in the jump list.
category:
navigation
tags:
#navigation
#normal-mode
How do I move between split windows using direction keys in Vim?
<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.
category:
buffers-windows
tags:
#windows
#navigation
#normal-mode
How do I switch to the next buffer in Vim?
The :bnext (or :bn for short) command switches to the next buffer in Vim's buffer list.
category:
buffers-windows
tags:
#buffers
#ex-commands
#navigation
How do I switch to the previous buffer in Vim?
The :bprev (or :bp for short) command switches to the previous buffer in Vim's buffer list.
category:
buffers-windows
tags:
#buffers
#ex-commands
#navigation
How do I autocomplete macro-defined identifiers from header files while in insert mode?
in insert mode triggers defined identifier completion — it searches for identifiers that match the partial word before the cursor by scanning #define statemen
category:
editing
tags:
#editing
#insert-mode
#completion
How do I list all open buffers in Vim?
The :ls command displays a list of all open buffers in Vim, showing their buffer number, status indicators, file name, and the line the cursor was last on.
category:
buffers-windows
tags:
#buffers
#ex-commands
#navigation
How do I switch between split windows in Vim?
The (Ctrl+w Ctrl+w) command cycles the cursor to the next window in the current tab.
category:
buffers-windows
tags:
#buffers
#windows
#navigation
#normal-mode
How do I trigger wildcard filename completion from inside a custom key mapping in Vim?
The wildchar option (default ) triggers wildcard completion interactively on the command line.
category:
config
tags:
#config
#macros
#command-line
#completion
How do I fuzzy-search and switch between open buffers in Vim?
The fzf.
category:
plugins
tags:
#plugins
#fzf
#buffers
#navigation
#workflow
How do I save a macro permanently in my vimrc?
How it works Macros recorded with q are stored in registers, but they are lost when you close Vim (unless you have the viminfo or shada file preserving them).
category:
macros
tags:
#macros
#registers
#config