From 0bcc2bf1265ba0a88cbcdb9cfc4c0b98bbe96f7a Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 29 Oct 2015 00:28:44 +0300 Subject: option: Add current directory to &backupdir option Fixes #3496 --- runtime/doc/options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 3471106afd..7829add2e5 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -901,7 +901,7 @@ A jump table for the options with a short description can be found at |Q_op|. again not rename the file. *'backupdir'* *'bdir'* -'backupdir' 'bdir' string (default "$XDG_DATA_HOME/nvim/backup") +'backupdir' 'bdir' string (default ".,$XDG_DATA_HOME/nvim/backup") global List of directories for the backup file, separated with commas. - The backup file will be created in the first directory in the list -- cgit From ffdf9399ba0a3f1b90bde6f4a3c489a879a01358 Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 29 Oct 2015 01:24:04 +0300 Subject: undo: Automatically create undo directory if needed --- runtime/doc/options.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 7829add2e5..73a433fd42 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6695,7 +6695,7 @@ A jump table for the options with a short description can be found at |Q_op|. global Alias for 'term', see above. - *'undodir'* *'udir'* + *'undodir'* *'udir'* *E926* 'undodir' 'udir' string (default ".") global {only when compiled with the |+persistent_undo| feature} @@ -6705,8 +6705,10 @@ A jump table for the options with a short description can be found at |Q_op|. "file.txt" is ".file.txt.un~". For other directories the file name is the full path of the edited file, with path separators replaced with "%". - When writing: The first directory that exists is used. "." always - works, no directories after "." will be used for writing. + When writing: The first directory that exists is used. "." always + works, no directories after "." will be used for writing. If none of + the directories exist Neovim will attempt to create last directory in + the list. When reading all entries are tried to find an undo file. The first undo file that exists is used. When it cannot be read an error is given, no further entry is used. -- cgit From 10080366b8975e827b64fda49a9686117c8c8f44 Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 30 Oct 2015 17:42:54 +0300 Subject: documentation: Fix &undodir default --- runtime/doc/options.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 73a433fd42..baafe8cbea 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6696,7 +6696,7 @@ A jump table for the options with a short description can be found at |Q_op|. Alias for 'term', see above. *'undodir'* *'udir'* *E926* -'undodir' 'udir' string (default ".") +'undodir' 'udir' string (default "$XDG_DATA_HOME/nvim/undo") global {only when compiled with the |+persistent_undo| feature} List of directory names for undo files, separated with commas. -- cgit