feat(defaults): remove 'options' from viewoptions #15397

ref #6289
This commit is contained in:
Gregory Anders 2021-08-16 14:05:24 -06:00 committed by GitHub
parent e01b88c799
commit 3954537b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 3 deletions

View File

@ -6700,7 +6700,7 @@ A jump table for the options with a short description can be found at |Q_op|.
security reasons. security reasons.
*'viewoptions'* *'vop'* *'viewoptions'* *'vop'*
'viewoptions' 'vop' string (default: "folds,options,cursor,curdir") 'viewoptions' 'vop' string (default: "folds,cursor,curdir")
global global
Changes the effect of the |:mkview| command. It is a comma separated Changes the effect of the |:mkview| command. It is a comma separated
list of words. Each word enables saving and restoring something: list of words. Each word enables saving and restoring something:

View File

@ -61,8 +61,8 @@ the differences.
- 'tags' defaults to "./tags;,tags" - 'tags' defaults to "./tags;,tags"
- 'ttimeoutlen' defaults to 50 - 'ttimeoutlen' defaults to 50
- 'ttyfast' is always set - 'ttyfast' is always set
- 'viewoptions' includes "unix,slash"
- 'undodir' defaults to ~/.local/share/nvim/undo (|xdg|), auto-created - 'undodir' defaults to ~/.local/share/nvim/undo (|xdg|), auto-created
- 'viewoptions' includes "unix,slash", excludes "options"
- 'viminfo' includes "!" - 'viminfo' includes "!"
- 'wildmenu' is enabled - 'wildmenu' is enabled
- 'wildoptions' defaults to "pum,tagfile" - 'wildoptions' defaults to "pum,tagfile"

View File

@ -2705,7 +2705,7 @@ return {
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true, deny_duplicates=true,
varname='p_vop', varname='p_vop',
defaults={if_true={vi="folds,options,cursor,curdir"}} defaults={if_true={vi="folds,cursor,curdir"}}
}, },
{ {
-- Alias for "shada". -- Alias for "shada".

View File

@ -21,6 +21,7 @@ set undodir^=.
set wildoptions= set wildoptions=
set startofline set startofline
set sessionoptions+=options set sessionoptions+=options
set viewoptions+=options
set switchbuf= set switchbuf=
" Unmap Nvim default mappings. " Unmap Nvim default mappings.