runtime(doc): remove wrong documentation of the :digraph command
Commit:
https://github.com/vim/vim/commit/a9b95c3d337855b0f3cc26aad80f8d42dc566fa9
Author: Christian Brabandt <[email protected]>
Date: Sun Jun 22 20:32:15 2025 +0200
runtime(doc): remove wrong documentation of the :digraph command
fixes: https://github.com/vim/vim/issues/17583
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/usr_24.txt b/runtime/doc/usr_24.txt
index 0f7249574..173781223 100644
--- a/runtime/doc/usr_24.txt
+++ b/runtime/doc/usr_24.txt
@@ -1,4 +1,4 @@
-*usr_24.txt* For Vim version 9.1. Last change: 2025 Jun 02
+*usr_24.txt* For Vim version 9.1. Last change: 2025 Jun 22
VIM USER MANUAL - by Bram Moolenaar
@@ -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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uTPgd-00EWTB-R3%40256bit.org.