How do I prepend a value to the beginning of a comma-separated Vim option like path or wildignore?
:set {option}^=value
Vim's :set option^=value operator prepends a value to the front of a list-style option, giving it the highest priority.
:set {option}^=value
Vim's :set option^=value operator prepends a value to the front of a list-style option, giving it the highest priority.
# vim: set tabstop=2 shiftwidth=2 expandtab :
A modeline is a specially formatted comment that Vim reads when it opens a file and applies as local settings — no plugin or project-level vimrc required.
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.
:set number!
The :set number! command toggles line numbers on or off.