summaryrefslogtreecommitdiffstats
path: root/runtime/doc/editing.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-20 17:32:38 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-20 17:32:38 +0200
commit49771f4fb03349d87e42c12305ebd5b307f3c2bd (patch)
tree89eb7ec2a47e0e9582b45b7586c43b70fa53dc1b /runtime/doc/editing.txt
parentc7040a5615827cefe0edbdf7f69c6640fa1aa1e1 (diff)
Change 'cryptmethod' from a number to a string option. Make it global-local.
Diffstat (limited to 'runtime/doc/editing.txt')
-rw-r--r--runtime/doc/editing.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/doc/editing.txt b/runtime/doc/editing.txt
index ba4da029ce..4d5b00fb90 100644
--- 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|.