How do you split the current window vertically?
<C-w>v
Press v or use :vsplit to create a vertical split showing the same buffer.
2277 results for "@a"
<C-w>v
Press v or use :vsplit to create a vertical split showing the same buffer.
:source $MYVIMRC
Use :source $MYVIMRC or :so % if editing the vimrc to reload configuration.
<C-r>/ or q/
Press q/ to open search history in a window.
:Rg pattern
Use :Rg pattern from fzf.
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.
:s/old/new/g
The :s/old/new/g command replaces all occurrences of old with new on the current line only.
expand('%:p:h:t')
Vim's filename modifiers can be chained to transform paths step by step.
qA...q
Use uppercase register letter qA to append to macro a instead of overwriting.
<C-w>s
Press s or use :split to create a horizontal split showing the same buffer.
set backupdir=~/.vim/backup//
Set backupdir to a specific directory to avoid cluttering your project.
set undofile undodir=~/.vim/undo//
Enable undofile and set undodir to persist undo history to disk.
:bufdo
When you need to apply the same change to every file you have open in Vim, switching to each buffer manually is tedious and error-prone.
[q / ]q
The vim-unimpaired plugin by Tim Pope provides bracket-pair mappings for navigating quickfix and location list entries: [q moves to the previous entry and ]q mo
:set nostartofline
By default, many Vim movement commands — gg, G, Ctrl-d, Ctrl-u, Ctrl-f, Ctrl-b, and others — snap the cursor to the first non-blank character of the destina
:set clipboard=unnamedplus
Setting clipboard=unnamedplus makes Vim's default yank and paste use the system clipboard.
autocmd FileType python setlocal ts=4 sw=4 et
Using autocmd FileType, you can configure Vim to automatically apply buffer-local settings whenever a file of a particular type is opened.
:sign define and :sign place
Vim's built-in sign system lets you define custom symbols and place them in the sign column — the narrow gutter to the left of line numbers.
cin)
The targets.
:set cmdheight=0
Setting cmdheight=0 in Neovim 0.
require('lspconfig').pyright.setup{}
Use nvim-lspconfig to configure language servers.