How do I split the Vim window to view two files at once?
:split
The :split command (or s) splits the current window horizontally, creating a new window above with the same file.
399 results for "it at"
:split
The :split command (or s) splits the current window horizontally, creating a new window above with the same file.
) and (
The ) and ( motions move by sentence boundaries.
<C-o>{cmd}
Pressing in insert mode lets you execute one normal mode command and then automatically returns you to insert mode.
v3aw
In visual mode, repeating text object motions progressively expands the selection.
:/start/,/end/command
Vim allows pattern-based ranges in Ex commands, letting you operate on lines between two search matches.
vim: set ts=2 sw=2 et:
Modelines are special comments at the top or bottom of a file that Vim reads to apply file-specific settings.
:nnoremap <leader>d "=strftime('%Y-%m-%d')<CR>p
The expression register (=) evaluates Vimscript expressions and uses the result as register content.
daw
The daw command deletes a word including one side of its surrounding whitespace.
f{char} ; ,
The f, F, t, and T motions search for a character on the current line.
:Lazy
lazy.
:{range}normal {commands}
The :normal command executes normal mode keystrokes from the command line.
command-line #command-line #ex-commands #editing #normal-mode
:Trouble diagnostics
trouble.
<C-w>z or :pclose
The preview window shows file contents temporarily without switching your editing context.
buffers-windows #buffers-windows #quickfix #preview #navigation
qa...@aq
A recursive macro calls itself at the end of its recording, causing it to repeat until a motion or search fails.
:%normal @q
To apply a macro to every line in the file, use :%normal @q.
gj and gk
When wrap is enabled, long lines wrap across multiple screen lines.
gj
The gj command moves the cursor down by one display line rather than one physical line.
qq;.q then @q or @@
The dot command (.
.
The .
:lua require'dap'.toggle_breakpoint()
The nvim-dap plugin implements the Debug Adapter Protocol in Neovim, providing a full debugging experience with breakpoints, step-through execution, variable in