Vim CheatSheet

Nomenclature

Delete

Move

Search

Getting Started

Edit

Search and Replace

Netrw Cheatsheet

This cheatsheet covers the essential commands for using Netrw effectively in Vim.

User Interface

Text

Set Configuration

Move Cursor

Most Used Movements

Screen Movements

Page Movements

Jumping

Miscellaneous

Marks (Jump to a previously set mark)

Movements to characters

Searching

Exiting Visual Mode / Cancelling

More Help

Tabs

Windows

Move Windows Around

Change Window Size

Open New Windows

Spelling

  1. Completions List: Up/Down
    • ↑ ↓
    • Ctrl + n / Ctrl + p
    • Tab / Shift + Tab: (Sometimes)
  2. Selecting a completion
    • : Accept
    • <C-Y>: Accept
    • <C-e>: Cancel
    • Use mouse: if mouse support is enabled; enable it with :set mouse=a
  3. Ignoring a completion: space, tab, <esc>

Neovim Terminal Emulator

Move/Copy Lines

Settings

Format Options

Folding

Buffers

:badd: buffer add :ls: list buffer buffer indicators: %: buffer in current window a: active buffer # alternate buffer, which can be accessed by Ctrl-6 : no indicator means that buffer is not loaded yet :bp: load previous buffer into current window :bn: load next buffer into current window :b2: load buffer No. 2 into current window :br: rewind first buffer into current window :bl: load last buffer into current window :ba: open all buffers into different windows :bd: delete buffer, take buffer number as arguments, :bd 1 2 3

Move Windows

Rotate windows

Reposition a window

& Move current window to far right \ <c-w> H & Move to far left \ <c-w> J & Move to very bottom \ <c-w> K & Move to very top \

\end{tabular}

Path Parts

!:echo @%! & Show relative path on command line \ !@! & The @ symbol is used to prefix a register \ !%:e! & file extension \ !%:r! & full path less the extension \

:help expand

Search

Settings

Automatic Formatting

Meaning: Format text automatically in paragraphs. Makes lists look greats. Makes c

Quitting

Sessions

Surround

Marks

Terminal

Syntax Highlighting

General Syntax Highlighting:

Highlight Groups:

Example Highlight Groups:

Filetype-Specific Highlighting:

Colors:

Color Codes:

Scripts