Friday, March 4, 2022

Re: Dictionary Completion of Capitalized Words

Gary Johnson wrote:

> Typing part of a word, then using Ctrl-X Ctrl-K to complete the word
> from entries in a dictionary works fine as long as the word (not
> a proper noun) is all lower case. But when a word that is lower
> case in the dictionary is capitalized when typed, as at the start of
> a sentence or in a title, completion from the dictionary fails.
>
> Is there a way to have Ctrl-X Ctrl-K complete a capitalized word
> even though it is not capitalized in the dictionary?
>
> Example:
>
> cornu<C-X><C-K> expands to cornucopia (or cornucopias), but
> Cornu<C-X><C-K> results in E486 Pattern not found.
>
> I'm using Vim 8.2.4127 in a terminal on Linux.

You can set 'ignorecase' to find matches. It's not clever though, it
will then remove the capital letter.

--
hundred-and-one symptoms of being an internet addict:
156. You forget your friend's name but not her e-mail address.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220304095537.F3C711C1483%40moolenaar.net.

No comments: