summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-11 22:51:14 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-11 22:51:14 +0200
commit08cc374dabd2a02785129fa1c0100f7745c244ad (patch)
tree1f24dad29bd8ed0d6715bf96388817f8b162f7c6 /runtime
parent4999a7fb6585915b53888c930067b33c01674678 (diff)
patch 8.1.1838: there is :spellwrong and :spellgood but not :spellrarev8.1.1838
Problem: There is :spellwrong and :spellgood but not :spellrare. Solution: Add :spellrare. (Martin Tournoij, closes #4291)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/spell.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/doc/spell.txt b/runtime/doc/spell.txt
index 4a28cdc0c9..ff6feb60fb 100644
--- a/runtime/doc/spell.txt
+++ b/runtime/doc/spell.txt
@@ -121,6 +121,23 @@ zuG Undo |zW| and |zG|, remove the word from the internal
:spellw[rong]! {word} Add {word} as a wrong (bad) word to the internal word
list, like with |zW|.
+ *:spellr* *:spellrare*
+:[count]spellr[are] {word}
+ Add {word} as a rare word to 'spellfile', similar to
+ |zw|. Without count the first name is used, with
+ a count of two the second entry, etc.
+
+ There are no normal mode commands to mark words as
+ rare as this is a fairly uncommon command and all
+ intuitive commands for this are already taken. If you
+ want you can add mappings with e.g.: >
+ nnoremap z? :exe ':spellrare ' . expand('<cWORD>')<CR>
+ nnoremap z/ :exe ':spellrare! ' . expand('<cWORD>')<CR>
+< |:spellundo|, |zuw|, or |zuW| can be used to undo this.
+
+:spellr[rare]! {word} Add {word} as a rare word to the internal word
+ list, similar to |zW|.
+
:[count]spellu[ndo] {word} *:spellu* *:spellundo*
Like |zuw|. [count] used as with |:spellgood|.