Mercurial > vim
diff runtime/doc/options.txt @ 2360:d8e4b27cef80 vim73
Change 'cryptmethod' from a number to a string option. Make it global-local.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 20 Jul 2010 17:32:38 +0200 |
parents | 06feaf4fe36a |
children | 7b7508ee56f1 |
line wrap: on
line diff
--- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -2074,15 +2074,15 @@ A jump table for the options with a shor *'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 @@ A jump table for the options with a shor 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'*