How do I open a file in Netrw in a vertical split instead of the current window?
v (netrw)
When browsing files in Vim's built-in file manager (Netrw), pressing v on any file opens it in a vertical split to the right.
2277 results for "@a"
v (netrw)
When browsing files in Vim's built-in file manager (Netrw), pressing v on any file opens it in a vertical split to the right.
gr{motion}
Neovim 0.
/pattern/e
Search offsets let you place the cursor at a specific position relative to the match.
:tabfind {name}
:tabfind is the tab-aware counterpart to :find.
:bd 3
Use :bd (bdelete) followed by the buffer number.
:colorscheme desert
Use :colorscheme name to change the color scheme.
d in visual mode
Select text visually and press d to delete the selection.
"_dP or use "0p
When pasting over a selection, the replaced text overwrites the unnamed register.
:set winfixbuf
Neovim's winfixbuf option (added in Neovim 0.
:put ={expression}
The :put command inserts the contents of a register as a new line below the cursor.
:%s/\n/ /g
Using \n in the pattern of :substitute matches the newline character at the end of each line, letting you join lines with any separator you choose — something
:let @a=@1
When you delete full lines repeatedly, Vim rotates those deletions through numbered registers.
:reg a b c
The :reg (alias :registers) command accepts a string of register names as its argument.
:tjump /pattern
:tjump is a smarter variant of :tag.
/\Vexact.string
Prefix with \V for very nomagic mode where almost all characters are treated literally.
qayiWi[<Esc>ea](<Esc>pa)<Esc>q
Record a macro that yanks the URL, wraps the text before it in brackets, and appends the URL in parentheses for Markdown link format.
qa/true\|false\ncgn<C-r>=@"=='true'?'false':'true'\n<Esc>q
Record a macro using cgn with an expression register to toggle between true and false.
:argdo %s/old/new/ge | update
Use :argdo to execute a command in every file in the argument list.
{count}@{register}
Prefix any macro execution with a count to repeat it that many times in a single command.
<C-w>g<C-]>
Pressing g jumps to the definition of the tag under the cursor — just like — but opens the destination in a new horizontal split window.