From fcfe535e9877cfdc824dc78f2d19e590400d34cd Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Tue, 6 Jun 2023 11:26:29 -0500 Subject: refactor(defaults): do not use C specific default values for options (#22500) The options 'path', 'include', and 'define' all use C-specific default values. This may have made sense a long time ago when Vim was mostly used just for writing C, but this is no longer the case, and we have ample support for filetype specific configuration. Make the default values of these options empty and move the C-specific values into a filetype plugin where they belong. Co-authored-by: zeertzjq --- runtime/doc/vim_diff.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime/doc/vim_diff.txt') diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 102f867fbd..2c7ca487e6 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -37,6 +37,7 @@ Defaults *nvim-defaults* - 'commentstring' defaults to "" - 'compatible' is always disabled - 'complete' excludes "i" +- 'define' defaults to "". The C ftplugin sets it to "^\\s*#\\s*define" - 'directory' defaults to ~/.local/state/nvim/swap// (|xdg|), auto-created - 'display' defaults to "lastline" - 'encoding' is UTF-8 (cf. 'fileencoding' for file-content encoding) @@ -46,6 +47,7 @@ Defaults *nvim-defaults* - 'hidden' is enabled - 'history' defaults to 10000 (the maximum) - 'hlsearch' is enabled +- 'include' defaults to "". The C ftplugin sets it to "^\\s*#\\s*include" - 'incsearch' is enabled - 'joinspaces' is disabled - 'langnoremap' is enabled @@ -55,6 +57,7 @@ Defaults *nvim-defaults* - 'mouse' defaults to "nvi" - 'mousemodel' defaults to "popup_setpos" - 'nrformats' defaults to "bin,hex" +- 'path' defaults to ".,,". The C ftplugin adds "/usr/include" if it exists. - 'ruler' is enabled - 'sessionoptions' includes "unix,slash", excludes "options" - 'shortmess' includes "CF", excludes "S" -- cgit