How do I select a rectangular block of text in Vim?
<C-v>
The (Ctrl+v) command enters visual block mode, which lets you select a rectangular column of text across multiple lines.
396 results for "it at"
<C-v>
The (Ctrl+v) command enters visual block mode, which lets you select a rectangular column of text across multiple lines.
vim-gitgutter plugin
vim-gitgutter shows git diff markers in the sign column next to line numbers.
Plug 'vim-airline/vim-airline'
vim-airline provides a beautiful, feature-rich status line that shows file info, git branch, diagnostics, and more with minimal configuration.
]c
In diff mode, ]c jumps to the next change hunk and [c jumps to the previous one.
:let @a = "Iprefix: \<Esc>"
The :let @a = ".
]m
The ]m command jumps to the start of the next method in Java-style code.
:g/pattern/norm @a
The :g/pattern/norm @a command combines the global command with macro execution.
:10,20t30
The :t command (short for :copy) duplicates lines from one location to another without touching any registers.
command-line #editing #ex-commands #lines #productivity #ranges
:<line-number>
When you know the exact line number you want to navigate to, the colon command is the quickest way to get there.
/pattern/+3
Vim's search command accepts an offset after the pattern that shifts where the cursor lands relative to the match.
ge
The ge motion moves the cursor backward to the end of the previous word.
qaI// <Esc>jq
This macro adds a // comment prefix to the beginning of the current line and moves down.
<C-w>]
The ] command opens the definition of the tag under the cursor in a new horizontal split.
ce
The ce command changes from the cursor position to the end of the current word.
gcc
The vim-commentary plugin by Tim Pope provides a minimal yet powerful way to toggle comments in any programming language.
plugins #plugins #commentary #commenting #editing #normal-mode
m{a-z} then '{a-z}
Vim marks let you bookmark positions in a file and jump back to them instantly.
u after macro (single undo)
When a macro makes multiple changes, a single u undoes the entire macro as one unit.
<C-t>
The command pops the tag stack and returns to the position from which you last used or :tag.
<C-v>u{code} in insert mode
In insert mode, u followed by a 4-digit hex code inserts the Unicode character at that code point.
:windo set scrollbind
The scrollbind option locks two or more windows together so that scrolling in one window automatically scrolls the others by the same amount.
buffers-windows #windows #navigation #splits #diff #productivity