Change 'cryptmethod' from a number to a string option. Make it global-local.
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 7767177..c8c3130 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -2074,15 +2074,15 @@
*'cryptmethod'* *'cm'*
-'cryptmethod' number (default 0)
- local to buffer
+'cryptmethod' string (default "zip")
+ global or local to buffer |global-local|
{not in Vi}
Method used for encryption when the buffer is written to a file:
*pkzip*
- 0 PkZip compatible method. A weak kind of encryption.
+ zip PkZip compatible method. A weak kind of encryption.
Backwards compatible with Vim 7.2 and older.
*blowfish*
- 1 Blowfish method. Strong encryption. Requires Vim 7.3
+ blowfish Blowfish method. Strong encryption. Requires Vim 7.3
or later, files can NOT be read by Vim 7.2 and older.
This adds a "seed" to the file, every time you write
the file the encrypted bytes will be different.
@@ -2091,10 +2091,16 @@
to the detected method of the file being read. Thus if you write it
without changing 'cryptmethod' the same method will be used.
Changing 'cryptmethod' does not mark the file as modified, you have to
- explicitly write it when not making modifications.
- Also see |:X|.
+ explicitly write it, you don't get a warning unless there are other
+ modifications. Also see |:X|.
+
+ When setting the global value to an empty string, it will end up with
+ the value "zip". When setting the local value to an empty string the
+ buffer will use the global value.
+
When a new encryption method is added in a later version of Vim, and
the current version does not recognize it, you will get *E821* .
+ You need to edit this file with the later version of Vim.
*'cscopepathcomp'* *'cspc'*