mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
defaults: sessionoptions+=unix,slash #12760
Since1c3ca4f18f
,2c1d12d0be
, #7836, the "unix" and "slash" behavior of 'sessionoptions'/'viewoptions' is always enabled, and the flags are just ignored. There is no reason for that behavior to be configurable. Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
@@ -77,7 +77,9 @@ Options ~
|
|||||||
*'fe'* 'fenc'+'enc' before Vim 6.0; no longer used.
|
*'fe'* 'fenc'+'enc' before Vim 6.0; no longer used.
|
||||||
*'highlight'* *'hl'* Names of builtin |highlight-groups| cannot be changed.
|
*'highlight'* *'hl'* Names of builtin |highlight-groups| cannot be changed.
|
||||||
*'langnoremap'* Deprecated alias to 'nolangremap'.
|
*'langnoremap'* Deprecated alias to 'nolangremap'.
|
||||||
|
'sessionoptions' Flags "unix", "slash" are ignored and always enabled.
|
||||||
*'vi'*
|
*'vi'*
|
||||||
|
'viewoptions' Flags "unix", "slash" are ignored and always enabled.
|
||||||
*'viminfo'* Deprecated alias to 'shada' option.
|
*'viminfo'* Deprecated alias to 'shada' option.
|
||||||
*'viminfofile'* Deprecated alias to 'shadafile' option.
|
*'viminfofile'* Deprecated alias to 'shadafile' option.
|
||||||
|
|
||||||
|
@@ -5028,22 +5028,18 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
will become the current directory (useful with
|
will become the current directory (useful with
|
||||||
projects accessed over a network from different
|
projects accessed over a network from different
|
||||||
systems)
|
systems)
|
||||||
slash backslashes in file names replaced with forward
|
|
||||||
slashes
|
|
||||||
tabpages all tab pages; without this only the current tab page
|
tabpages all tab pages; without this only the current tab page
|
||||||
is restored, so that you can make a session for each
|
is restored, so that you can make a session for each
|
||||||
tab page separately
|
tab page separately
|
||||||
terminal include terminal windows where the command can be
|
terminal include terminal windows where the command can be
|
||||||
restored
|
restored
|
||||||
unix with Unix end-of-line format (single <NL>), even when
|
|
||||||
on Windows or DOS
|
|
||||||
winpos position of the whole Vim window
|
winpos position of the whole Vim window
|
||||||
winsize window sizes
|
winsize window sizes
|
||||||
|
slash |deprecated| Always enabled. Uses "/" in filenames.
|
||||||
|
unix |deprecated| Always enabled. Uses "\n" line endings.
|
||||||
|
|
||||||
Don't include both "curdir" and "sesdir".
|
Don't include both "curdir" and "sesdir". When neither is included
|
||||||
When neither "curdir" nor "sesdir" is included, file names are stored
|
filenames are stored as absolute paths.
|
||||||
with absolute paths.
|
|
||||||
"slash" and "unix" are always enabled.
|
|
||||||
|
|
||||||
*'shada'* *'sd'* *E526* *E527* *E528*
|
*'shada'* *'sd'* *E526* *E527* *E528*
|
||||||
'shada' 'sd' string (Vim default for
|
'shada' 'sd' string (Vim default for
|
||||||
@@ -6569,14 +6565,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
options options and mappings local to a window or buffer (not
|
options options and mappings local to a window or buffer (not
|
||||||
global values for local options)
|
global values for local options)
|
||||||
localoptions same as "options"
|
localoptions same as "options"
|
||||||
slash backslashes in file names replaced with forward
|
slash |deprecated| Always enabled. Uses "/" in filenames.
|
||||||
slashes
|
unix |deprecated| Always enabled. Uses "\n" line endings.
|
||||||
unix with Unix end-of-line format (single <NL>), even when
|
|
||||||
on Windows or DOS
|
|
||||||
|
|
||||||
"slash" and "unix" are useful on Windows when sharing view files
|
|
||||||
with Unix. The Unix version of Vim cannot source dos format scripts,
|
|
||||||
but the Windows version of Vim can source unix format scripts.
|
|
||||||
|
|
||||||
*'virtualedit'* *'ve'*
|
*'virtualedit'* *'ve'*
|
||||||
'virtualedit' 've' string (default "")
|
'virtualedit' 've' string (default "")
|
||||||
|
@@ -50,7 +50,7 @@ the differences.
|
|||||||
- 'listchars' defaults to "tab:> ,trail:-,nbsp:+"
|
- 'listchars' defaults to "tab:> ,trail:-,nbsp:+"
|
||||||
- 'nrformats' defaults to "bin,hex"
|
- 'nrformats' defaults to "bin,hex"
|
||||||
- 'ruler' is enabled
|
- 'ruler' is enabled
|
||||||
- 'sessionoptions' enables "slash,unix", excludes "options"
|
- 'sessionoptions' includes "unix,slash", excludes "options"
|
||||||
- 'shortmess' includes "F", excludes "S"
|
- 'shortmess' includes "F", excludes "S"
|
||||||
- 'showcmd' is enabled
|
- 'showcmd' is enabled
|
||||||
- 'sidescroll' defaults to 1
|
- 'sidescroll' defaults to 1
|
||||||
@@ -60,6 +60,7 @@ 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
|
||||||
- 'viminfo' includes "!"
|
- 'viminfo' includes "!"
|
||||||
- 'wildmenu' is enabled
|
- 'wildmenu' is enabled
|
||||||
|
@@ -493,7 +493,8 @@ static int put_view(
|
|||||||
|
|
||||||
/// Writes commands for restoring the current buffers, for :mksession.
|
/// Writes commands for restoring the current buffers, for :mksession.
|
||||||
///
|
///
|
||||||
/// Legacy 'sessionoptions' flags SSOP_UNIX, SSOP_SLASH are always enabled.
|
/// Legacy 'sessionoptions'/'viewoptions' flags SSOP_UNIX, SSOP_SLASH are
|
||||||
|
/// always enabled.
|
||||||
///
|
///
|
||||||
/// @param dirnow Current directory name
|
/// @param dirnow Current directory name
|
||||||
/// @param fd File descriptor to write to
|
/// @param fd File descriptor to write to
|
||||||
@@ -822,9 +823,9 @@ void ex_loadview(exarg_T *eap)
|
|||||||
|
|
||||||
/// ":mkexrc", ":mkvimrc", ":mkview", ":mksession".
|
/// ":mkexrc", ":mkvimrc", ":mkview", ":mksession".
|
||||||
///
|
///
|
||||||
/// Legacy 'sessionoptions' flags SSOP_UNIX, SSOP_SLASH are always enabled.
|
/// Legacy 'sessionoptions'/'viewoptions' flags are always enabled:
|
||||||
/// - SSOP_UNIX: line-endings are always LF
|
/// - SSOP_UNIX: line-endings are LF
|
||||||
/// - SSOP_SLASH: filenames are always written with "/" slash
|
/// - SSOP_SLASH: filenames are written with "/" slash
|
||||||
void ex_mkrc(exarg_T *eap)
|
void ex_mkrc(exarg_T *eap)
|
||||||
{
|
{
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
|
Reference in New Issue
Block a user