How do I open and edit a file directly inside a tar archive in Vim?
:e archive.tar::path/to/file
Vim's built-in tar.
2125 results for "i" a""
:e archive.tar::path/to/file
Vim's built-in tar.
O
The O (uppercase) command opens a new blank line above the current line and places you in insert mode, ready to type.
:%s/pattern/replacement/ig
The :s substitute command accepts /i and /I flags that override your global ignorecase and smartcase settings for that single substitution, letting you choose c
<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-v>jj$A;
Visual block mode normally selects a fixed-width column, which makes appending tricky when lines have different lengths.
gq (visual mode)
Pressing gq on a visual selection reformats the selected lines to hard-wrap at textwidth columns.
:setlocal iskeyword+=-
The iskeyword option defines which characters are part of a "word" for motions like w, b, e, , and text objects like iw.
:let @q = 'content'
:let @{reg} = 'string' directly assigns content to any named register from Vimscript.
r{char} in visual mode
In visual mode, pressing r followed by a character replaces every character in the selection with that single character.
:s/pattern/\=expression/g
Prefixing the replacement string with \= in a :substitute command tells Vim to evaluate the rest as a VimScript expression rather than literal text.
:WhichKey
which-key.
>>
The >> command shifts the current line one shiftwidth to the right, adding indentation.
@@
How it works After running a macro with @a (or any other register), you can repeat that same macro by pressing @@.
fnameescape(filename)
When building Vim Ex commands dynamically, filenames with spaces, , %, #, [, or other special characters will be misinterpreted — the space looks like an argu
:compiler
Vim ships with built-in compiler plugins for many languages and tools — including gcc, python, cargo, eslint, tsc, and more.
command-line #ex-commands #config #buffers-windows #command-line
guiw
The guiw command converts the entire word under the cursor to lowercase.
:set scrolloff=5
The scrolloff option keeps a minimum number of lines visible above and below the cursor when scrolling.
100@a
When you give a large count to a macro — such as 100@a — Vim automatically stops replaying the macro as soon as any step inside it fails.
qa ci"replacement<Esc> /next<CR> q
Macros can contain any Vim command including text objects, searches, and multi-key motions.
matchadd()
The matchadd() function adds a persistent highlight for a pattern in the current window without touching your search register or interfering with n/N navigation