How do I keep file ownership and metadata stable when Vim writes through symlinks?
:set backupcopy=yes
When Vim saves a file, it may use a rename-style write strategy that can replace the original inode.
:set backupcopy=yes
When Vim saves a file, it may use a rename-style write strategy that can replace the original inode.
:packadd gzip
Compressed logs and artifacts often appear in debugging workflows, and repeatedly shelling out to decompress and recompress wastes time.
glob()
The glob() built-in function expands a wildcard pattern into a list of matching filesystem paths, entirely within Vimscript.
%:e
Vim exposes the current filename as % in Ex commands, and you can apply modifiers to extract specific parts of the path.
:set path+=** | :find
By adding to Vim's path option and using :find, you can search for any file recursively through your project tree with tab completion — no plugins required.
:set nofixendofline
By default, Vim enforces POSIX compliance by appending a final newline to any file that lacks one.
- (vim-vinegar)
The vim-vinegar plugin by Tim Pope enhances Neovim's built-in netrw file browser.
:lvimgrep /pattern/ %
While :vimgrep populates the global quickfix list, :lvimgrep uses the window-local location list instead.
:args *.py
Use :args *.
:NERDTreeToggle
The NERDTree plugin provides a full-featured file explorer sidebar in Vim, giving you a visual directory tree that you can navigate, search, and manipulate file
:Files
The fzf.