diff options
author | Eric Roberts <notthebmovieactor@gmail.com> | 2017-10-27 10:48:24 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-11-18 12:02:15 +0100 |
commit | a6de144c3e5cc888ab3cb7c2034a762b23566919 (patch) | |
tree | 7a6368c0786b50ace0953cfa1a1bdcf7a8f6be50 /runtime | |
parent | f185c739bc843705bf46e844cb209b3f6b2de557 (diff) | |
download | rneovim-a6de144c3e5cc888ab3cb7c2034a762b23566919.tar.gz rneovim-a6de144c3e5cc888ab3cb7c2034a762b23566919.tar.bz2 rneovim-a6de144c3e5cc888ab3cb7c2034a762b23566919.zip |
'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
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 3 | ||||
-rw-r--r-- | runtime/doc/starting.txt | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 026cfbe2eb..8a8ad58efd 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -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 diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt index 7aba84b454..05e3f72b8d 100644 --- a/runtime/doc/starting.txt +++ b/runtime/doc/starting.txt @@ -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 |