How do you print all lines matching a pattern?
:g/pattern/p
Use :g/pattern/p to print all matching lines.
245 results for ""+p"
:g/pattern/p
Use :g/pattern/p to print all matching lines.
"a]p
Use ]p after specifying a register to paste with adjusted indentation.
set statusline=%f\ %m%r%h\ %=%l,%c\ %P
Configure statusline with format items: %f (filename), %m (modified flag), %= (right-align), %l,%c (line,column), %P (percentage).
"*p
The register represents the primary selection (middle-click paste in X11).
""p
The unnamed register "" is the default target for yank, delete, and change operations.
]p
The ]p command pastes text and adjusts its indentation to match the current line.
"=2+3<CR>p
The expression register = evaluates a Vimscript expression and stores the result.
"*p vs "+p
How it works Vim has two system clipboard registers that interact with the operating system: " -- the selection register (PRIMARY selection on Linux/X11, clipbo
<C-w>p
The p command jumps to the previously active window (the last window you were in).
P
The P (uppercase) command pastes the contents of the default register before the cursor position.
:w ++p
Neovim's :w ++p flag automatically creates any missing intermediate directories when writing a file.
"+y and "+p
The "+ register is linked to the system clipboard.
p
The p command pastes (puts) the contents of the default register after the cursor.
c""<Esc>P
Without a surround plugin, you can manually wrap selected text by changing it, typing the delimiters, and pasting the original text back.
"=expression<CR>p
The expression register ("=) lets you evaluate any Vimscript expression and paste the result directly into your buffer from normal mode.
registers #registers #editing #normal-mode #productivity #math
[p
When you copy code from one indentation level and paste it at another, p preserves the original indentation, leaving your code misaligned.
:nnoremap <leader>d "=strftime('%Y-%m-%d')<CR>p
The expression register (=) evaluates Vimscript expressions and uses the result as register content.
qa f,ldt,F(p q
This macro swaps two comma-separated arguments inside parentheses by cutting the second argument and placing it before the first.
expand('%:p:h:t')
Vim's filename modifiers can be chained to transform paths step by step.
P (in visual mode)
When you paste over a visual selection using p (lowercase), Vim replaces the selection with your register contents — but the replaced text overwrites your unn