How do I open a Telescope picker result in a split or new tab instead of the current window?
<C-x> / <C-v> / <C-t> (in Telescope)
When browsing results in a Telescope picker, you are not limited to opening selections in the current window.
370 results for "insert mode"
<C-x> / <C-v> / <C-t> (in Telescope)
When browsing results in a Telescope picker, you are not limited to opening selections in the current window.
dV{motion}
In operator-pending mode — the brief state after typing an operator like d, c, or y but before entering the motion — you can prefix the motion with v, V, or
:'<,'>norm {commands}
The :normal (or :norm) command lets you execute normal mode keystrokes from the command line.
command-line #editing #ex-commands #normal-mode #productivity #ranges
das
Vim defines a sentence as text ending with .
editing #editing #text-objects #delete #normal-mode #motions
qa{edits}@bq
How it works Vim macros can call other macros, creating a modular system of reusable building blocks.
<C-d> (in command mode)
Pressing in Vim's command line displays the full list of matching completions below the command prompt, without cycling through them one at a time.
command-line #command-line #completion #ex-commands #navigation
as and is
Vim defines sentence text objects — as (around sentence) and is (inner sentence) — that allow any operator to act on an entire sentence in one motion.
:pedit
Vim has a built-in preview window — a special window distinct from regular splits.
<C-f> (in command-line mode)
When you're already on the Vim command line and realize you need complex edits — inserting text from multiple positions, reordering arguments, or referencing
v:count1
The v:count1 variable holds the count typed before a command, defaulting to 1 if no count was given.
:set cmdheight=2
The cmdheight option controls how many lines Vim reserves for the command-line area at the bottom of the screen.
"Ayy
The "Ayy command appends the current line to register a instead of overwriting it.
:put {reg}
The :put Ex command always inserts a register's content as a new line below the current line, regardless of whether the register holds characterwise, linewise,
editing #registers #editing #paste #ex-commands #normal-mode
:set showcmd
The showcmd option makes Vim display the currently-typed command in the bottom-right corner of the screen, giving you live feedback as you build up key sequence
feedkeys()
The feedkeys({keys}, {flags}) function inserts a string of keystrokes into Vim's input queue as if the user had typed them.
:!command
The :!command syntax lets you execute any shell command directly from within Vim without leaving the editor.
di(
The di( command deletes everything inside the nearest pair of parentheses without removing the parentheses themselves.
:let @q = 'content'
:let @{reg} = 'string' directly assigns content to any named register from Vimscript.
"ap, edit, "ayy
Vim stores macros in registers, which means you can paste a macro's contents into a buffer, edit it as regular text, and yank it back into the register.
:set tabstop=4 shiftwidth=4 expandtab
The :set tabstop=4 shiftwidth=4 expandtab command configures Vim to use 4-space indentation with spaces instead of tab characters.