diff options
author | Joe Hermaszewski <git@monoid.al> | 2019-11-18 15:38:27 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-17 23:38:27 -0800 |
commit | 1ff5b60cb96aea3b3f6ef9e2792c5797dfda72dc (patch) | |
tree | b94a02e989c557c9d93c7bbfb26bcea00fd02671 /runtime | |
parent | b1c4a8191ef65790f3f039a450cffe064499cc9b (diff) | |
download | rneovim-1ff5b60cb96aea3b3f6ef9e2792c5797dfda72dc.tar.gz rneovim-1ff5b60cb96aea3b3f6ef9e2792c5797dfda72dc.tar.bz2 rneovim-1ff5b60cb96aea3b3f6ef9e2792c5797dfda72dc.zip |
vim-patch:8.1.0251: support full paths for 'backupdir' #11269
Problem: Using a full path is supported for 'directory' but not for
'backupdir'. (Mikolaj Machowski)
Solution: Support 'backupdir' as well. (Christian Brabandt, closes vim/vim#179)
https://github.com/vim/vim/commit/b782ba475a3f8f2b0be99dda164ba4545347f60f
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 270232179a..386fcdf8c0 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -843,6 +843,14 @@ A jump table for the options with a short description can be found at |Q_op|. name, precede it with a backslash. - To include a comma in a directory name precede it with a backslash. - A directory name may end in an '/'. + - For Unix and Win32, if a directory ends in two path separators "//", + the swap file name will be built from the complete path to the file + with all path separators changed to percent '%' signs. This will + ensure file name uniqueness in the backup directory. + On Win32, it is also possible to end with "\\". However, When a + separating comma is following, you must use "//", since "\\" will + include the comma in the file name. Therefore it is recommended to + use '//', instead of '\\'. - Environment variables are expanded |:set_env|. - Careful with '\' characters, type one before a space, type two to get one in the option (see |option-backslash|), for example: > @@ -1992,12 +2000,14 @@ A jump table for the options with a short description can be found at |Q_op|. - A directory starting with "./" (or ".\" for Windows) means to put the swap file relative to where the edited file is. The leading "." is replaced with the path name of the edited file. - - For Unix and Win32, if a directory ends in two path separators "//" - or "\\", the swap file name will be built from the complete path to - the file with all path separators substituted to percent '%' signs. - This will ensure file name uniqueness in the preserve directory. - On Win32, when a separating comma is following, you must use "//", - since "\\" will include the comma in the file name. + - For Unix and Win32, if a directory ends in two path separators "//", + the swap file name will be built from the complete path to the file + with all path separators substituted to percent '%' signs. This will + ensure file name uniqueness in the preserve directory. + On Win32, it is also possible to end with "\\". However, When a + separating comma is following, you must use "//", since "\\" will + include the comma in the file name. Therefore it is recommended to + use '//', instead of '\\'. - Spaces after the comma are ignored, other spaces are considered part of the directory name. To have a space at the start of a directory name, precede it with a backslash. |