aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-11 21:13:02 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-06-12 13:06:48 -0400
commit61117d89a390d285c6daf16111a8c4b52f0c08a2 (patch)
tree19da883129fa707e633943d32031fb077ba72095 /runtime
parentd3bdde0bad12458128fae817aa348ac1d07b6f35 (diff)
downloadrneovim-61117d89a390d285c6daf16111a8c4b52f0c08a2.tar.gz
rneovim-61117d89a390d285c6daf16111a8c4b52f0c08a2.tar.bz2
rneovim-61117d89a390d285c6daf16111a8c4b52f0c08a2.zip
vim-patch:8.1.1838: there is :spellwrong and :spellgood but not :spellrare
Problem: There is :spellwrong and :spellgood but not :spellrare. Solution: Add :spellrare. (Martin Tournoij, closes vim/vim#4291) https://github.com/vim/vim/commit/08cc374dabd2a02785129fa1c0100f7745c244ad
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 f722747ce9..3dce961c03 100644
--- a/runtime/doc/spell.txt
+++ b/runtime/doc/spell.txt
@@ -110,6 +110,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|.