mirror of
https://github.com/neovim/neovim.git
synced 2025-12-10 00:22:41 +00:00
'viewoptions': add "curdir" flag #7447
The flag enables the current local directory set by ":lcd" to be saved to views which is the current default behaviour. The option can be removed to disable this behaviour. closes #7435 vim-patch:8.0.1289
This commit is contained in:
committed by
Justin M. Keyes
parent
f185c739bc
commit
a6de144c3e
@@ -6453,7 +6453,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
security reasons.
|
||||
|
||||
*'viewoptions'* *'vop'*
|
||||
'viewoptions' 'vop' string (default: "folds,options,cursor")
|
||||
'viewoptions' 'vop' string (default: "folds,options,cursor,curdir")
|
||||
global
|
||||
{not available when compiled without the |+mksession|
|
||||
feature}
|
||||
@@ -6461,6 +6461,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
list of words. Each word enables saving and restoring something:
|
||||
word save and restore ~
|
||||
cursor cursor position in file and in window
|
||||
curdir local current directory, if set with |:lcd|
|
||||
folds manually created folds, opened/closed folds and local
|
||||
fold options
|
||||
options options and mappings local to a window or buffer (not
|
||||
|
||||
@@ -885,7 +885,7 @@ The output of ":mkview" contains these items:
|
||||
5. The scroll position and the cursor position in the file. Doesn't work very
|
||||
well when there are closed folds.
|
||||
6. The local current directory, if it is different from the global current
|
||||
directory.
|
||||
directory and 'viewoptions' contains "curdir".
|
||||
|
||||
Note that Views and Sessions are not perfect:
|
||||
- They don't restore everything. For example, defined functions, autocommands
|
||||
|
||||
Reference in New Issue
Block a user