How do I insert the filename under the cursor directly into the command line?
<C-r><C-f>
While typing a command, inserts the filename under the cursor in the buffer at the command-line prompt.
254 results for ":split"
<C-r><C-f>
While typing a command, inserts the filename under the cursor in the buffer at the command-line prompt.
:ldo {cmd}
Vim maintains two parallel systems for collections of file positions: the quickfix list (global, one per Vim session) and the location list (local to each windo
:!ls -la
Vim lets you execute any shell command directly from within the editor using the :! (bang) command.
:set completeopt=menuone,noselect
By default, Vim's and completion can auto-insert the first match, or only show a menu when there are multiple matches.
:diffget LOCAL
When Vim is configured as a git mergetool, it opens a three-way split with the LOCAL (your branch), REMOTE (their branch), and MERGED (the output file) buffers.
buffers-windows #buffers-windows #diff #editing #command-line
:only
The :only command closes every window in the current tab page except the one your cursor is in.
:InspectTree
Opens an interactive split window showing the treesitter parse tree for the current buffer.
:set mouse=a
How it works The :set mouse=a command enables mouse support in all Vim modes.
:tabnew filename
The :tabnew filename command opens a file in a new tab page in Vim.
buffers-windows #buffers-windows #tabs #ex-commands #navigation
gf
The gf command ("go to file") opens the file whose path is under the cursor.
navigation #navigation #normal-mode #buffers #productivity #file-management
:redir @a | {cmd} | redir END
The :redir command redirects the output of Ex commands to a register, file, or variable instead of displaying it on the screen.
command-line #command-line #ex-commands #registers #productivity #advanced
:mksession / :source Session.vim
Vim's session feature saves a snapshot of your entire workspace — open buffers, window layout, tab pages, current directory, and more — to a file that you c
buffers-windows #buffers #windows #config #productivity #workflow #session
<Leader><Leader>w
The vim-easymotion plugin replaces Vim's default motion commands with a visual overlay system that lets you jump to any visible position on screen in just two o
:DB
The vim-dadbod plugin by Tim Pope turns Vim into a powerful database client.