From 462f7aaa8ea683114726d5f189f238911eb4819b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 23 Jun 2025 09:06:38 +0800 Subject: [PATCH] vim-patch:a9b95c3: runtime(doc): remove wrong documentation of the :digraph command (#34608) fixes: vim/vim#17583 https://github.com/vim/vim/commit/a9b95c3d337855b0f3cc26aad80f8d42dc566fa9 Co-authored-by: Christian Brabandt --- runtime/doc/usr_24.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/runtime/doc/usr_24.txt b/runtime/doc/usr_24.txt index 4a6b2ea011..0c679b103c 100644 --- a/runtime/doc/usr_24.txt +++ b/runtime/doc/usr_24.txt @@ -568,14 +568,13 @@ that combination. Thus CTRL-K dP also works. Since there is no digraph for using. Always use ":digraphs" to find out which digraphs are currently available. -You can define your own digraphs. Example: > +You can define your own digraphs by specifying the target character with a +decimal number. Example: > - :digraph a" ä + :digraph a\" 228 -This defines that CTRL-K a" inserts an ä character. You can also specify the -character with a decimal number. This defines the same digraph: > - - :digraph a" 228 +This defines that CTRL-K a" inserts an ä character. Note: we had to escape +the " character since otherwise it would act as a comment character. More information about digraphs here: |digraphs| Another way to insert special characters is with a keymap. More about that