Mercurial > vim
diff runtime/doc/editing.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 | 12b829477c60 |
children | 151b037b7e74 |
line wrap: on
line diff
--- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1371,10 +1371,17 @@ the file is encrypted. To disable the encryption, reset the 'key' option to an empty value: > :set key= -You can use the 'cryptmethod' option to select the type of encryption. Do -this before writing the file. When reading an encrypted file it will be set -automatically to the method used when that file was written. You can change -'cryptmethod' before writing that file to change the method. +You can use the 'cryptmethod' option to select the type of encryption, use one +of these two: > + :setlocal cm=zip " weak method, backwards compatible + :setlocal cm=blowfish " strong method +Do this before writing the file. When reading an encrypted file it will be +set automatically to the method used when that file was written. You can +change 'cryptmethod' before writing that file to change the method. +To set the default method, used for new files, use one of these in your +|vimrc| file: > + set cm=zip + set cm=blowfish When writing an undo file, the same key and method will be used for the text in the undo file. |persistent-undo|.