How do I copy the current file's full path to the system clipboard?
:let @+ = expand('%:p')
Sometimes you need to share or use the full path of the file you're editing — for a terminal command, a config file, or a chat message.
2125 results for "i" a""
:let @+ = expand('%:p')
Sometimes you need to share or use the full path of the file you're editing — for a terminal command, a config file, or a chat message.
:/start/,/end/ {command}
Vim's range addressing lets you specify a line range using search patterns instead of explicit line numbers.
set colorcolumn=+1
The colorcolumn option highlights one or more vertical columns to help keep lines within a length limit.
vim.api.nvim_set_hl(0, 'Normal', {bg='NONE'})
By default, Neovim paints a solid background color defined by the active colorscheme.
config #neovim #lua #config #highlight #colorscheme #transparency
":p
The : register holds the most recently executed Ex command.
registers #registers #ex-commands #normal-mode #productivity
zm
Instead of jumping between fully open (zR) and fully closed (zM), zm and zr let you step through fold levels one at a time.
:set foldmarker=region,endregion
When using foldmethod=marker, Vim looks for the strings in foldmarker to identify fold boundaries.
:cexpr system('rg --vimgrep "TODO"')
When you already know you want an external search tool, :cexpr lets you import results directly into quickfix without opening a terminal buffer or shelling out
[on / ]on / yon
The vim-unimpaired plugin by Tim Pope provides a consistent set of bracket-based mappings for toggling Vim options, navigating paired lists, and performing comm
:Make / :Dispatch
The vim-dispatch plugin by Tim Pope provides asynchronous build and command execution so you can run compilers, test suites, and other long-running commands wit
( ) { } [[ ]]
Vim provides structural navigation motions that move by sentences, paragraphs, and sections.
json_encode()
Vim 8.
:changes
How it works Vim maintains a change list that records the position of every change you make to a buffer.
z{N}<CR>
The z{N} command sets the current window's height to exactly N lines and simultaneously positions the current line at the top of the window.
:DB
The vim-dadbod plugin by Tim Pope turns Vim into a powerful database client.
vim.diagnostic.count()
vim.
:bdelete
How it works The :bdelete command (often abbreviated :bd) removes the current buffer from Vim's buffer list and closes it.
:cnext
The quickfix list is Vim's built-in way to collect a list of positions — typically compiler errors, grep results, or linter warnings — and jump between them
:set wildoptions=fuzzy
Enables fuzzy matching for Neovim's command-line tab completion (wildmenu), so you can match any part of a filename, command, or option — not just from the be
command-line #completion #command-line #neovim #config #wildmenu
autocmd ++once
The ++once flag, added in Vim 8.