Wednesday, May 17, 2023

Re: ask Vim why the word under the cursor is misspelled

Bram Moolenaar wrote:
You can use spellbadword() for that.
 
Oh, nice! I completely missed that. Works like a charm.

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

Good idea. Done.

--
--
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/CAKKOqGOvUbEg_qF3hw_TvQ408tktJyyG5QxpWid5zy7Qz6DoPg%40mail.gmail.com.

Re: ask Vim why the word under the cursor is misspelled

Adam Monsen wrote:

> Is there a way to directly ask the Vim spell checker precisely why the word
> under the cursor is misspelled?
>
> It took me a bit to figure out how it paints a blue background behind bare
> words on a line because they are not capitalized. For example:
>
> foo
>
> I can figure it out pretty easily from the suggestions listed by typing z=
> in normal mode (while my cursor is on the highlighted non-capitalized word)
> because the first suggestion is "Foo" with a capital F.
>
> It would be handy to be able to get this information explicitly in Vim
> script, similar to how I can use synIDattr() and synIDtrans() to query the
> name and detail of the syntax highlighting group in effect at the current
> cursor position. Getting the group "SpellCap" or something like "word [foo]
> is not capitalized" would be helpful. I guess I'd prefer the first because
> it is unambiguous and ":help SpellCap" works as expected.

You can use spellbadword() for that.

--
Nothing is fool-proof to a sufficiently talented fool.

/// 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/20230517211425.CC2D01C0C46%40moolenaar.net.

Google C++ Style Guide

Hi,
*

Is it possible to automate Google C++ Style Guide >> Section Function_Declarations_and_Definitions  >> use case 'If you have too much text to fit on one line:' with Vim ?


In other words Wrap parameter lists of function declaration, at same column's number.


Thanks
N i c o l a s

--
--
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/795c9209-3f57-407e-bbf5-c2600940144an%40googlegroups.com.

ask Vim why the word under the cursor is misspelled

Is there a way to directly ask the Vim spell checker precisely why the word under the cursor is misspelled?

It took me a bit to figure out how it paints a blue background behind bare words on a line because they are not capitalized. For example:

foo

I can figure it out pretty easily from the suggestions listed by typing z= in normal mode (while my cursor is on the highlighted non-capitalized word) because the first suggestion is "Foo" with a capital F.

It would be handy to be able to get this information explicitly in Vim script, similar to how I can use synIDattr() and synIDtrans() to query the name and detail of the syntax highlighting group in effect at the current cursor position. Getting the group "SpellCap" or something like "word [foo] is not capitalized" would be helpful. I guess I'd prefer the first because it is unambiguous and ":help SpellCap" works as expected.

Thanks!
-Adam


Related:

--
--
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/CAKKOqGO_ipiwMJBjij%3DWWFFbKX3noF2Mp-JZSkNBBmRD_Guk6g%40mail.gmail.com.

Sunday, May 14, 2023

Re: Plugins not loading with recent vim on Windows 11

An update to vim-9.0.1558 was pushed through chocolatey today. The problem has disappeared. I'll assume a fix was pushed in this update. I'll have to look at vim source code to see what was changed.

On Monday, May 15, 2023 at 12:08:24 AM UTC-6 Steve Martin wrote:
junegunn/vim-plug is in .vim/autoload where it has always been and always worked, before.


On Saturday, May 13, 2023 at 5:19:14 PM UTC-6 Owajigbanam Ogbuluijah wrote:
Try installing junegunn/vim-plug and restarting Vim

On Sat, May 13, 2023 at 10:17 PM Steve <smart...@gmail.com> wrote:
vim version: 9.0.1547

Getting the following errors when opening vim:

Error detected while processing C:\Users\smartin\.vimrc:
line  188:
E117: Unknown function: plug#begin
line  191:
E492: Not an editor command: Plug 'mattn/emmet-vim'
line  192:
E492: Not an editor command: Plug 'vim-utils/vim-man'

It appears that the plug.vim script is not being loaded, and the rest of the plugins loaded by that are failing.

Path to my .vim directory is the same as it has always been:

C:\Users\smartin\.vim

It's possible this problem occurred before 1547, but I haven't used vim for a few days now.

Installed vim via chocolatey.
--
Steve Martin

--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADPQDN%2B3RVUbEG6hszoYwFecdoR1qJqyiExN-FSCGTKj1dDU4Q%40mail.gmail.com.

--
--
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/72f15467-8792-4c85-a206-c7f4629d3c49n%40googlegroups.com.

Re: Plugins not loading with recent vim on Windows 11

junegunn/vim-plug is in .vim/autoload where it has always been and always worked, before.


On Saturday, May 13, 2023 at 5:19:14 PM UTC-6 Owajigbanam Ogbuluijah wrote:
Try installing junegunn/vim-plug and restarting Vim

On Sat, May 13, 2023 at 10:17 PM Steve <smart...@gmail.com> wrote:
vim version: 9.0.1547

Getting the following errors when opening vim:

Error detected while processing C:\Users\smartin\.vimrc:
line  188:
E117: Unknown function: plug#begin
line  191:
E492: Not an editor command: Plug 'mattn/emmet-vim'
line  192:
E492: Not an editor command: Plug 'vim-utils/vim-man'

It appears that the plug.vim script is not being loaded, and the rest of the plugins loaded by that are failing.

Path to my .vim directory is the same as it has always been:

C:\Users\smartin\.vim

It's possible this problem occurred before 1547, but I haven't used vim for a few days now.

Installed vim via chocolatey.
--
Steve Martin

--
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADPQDN%2B3RVUbEG6hszoYwFecdoR1qJqyiExN-FSCGTKj1dDU4Q%40mail.gmail.com.

--
--
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/629d1303-2bf4-440f-ad5a-1c77e5f32c0dn%40googlegroups.com.

Saturday, May 13, 2023

Re: Plugins not loading with recent vim on Windows 11

Try installing junegunn/vim-plug and restarting Vim

On Sat, May 13, 2023 at 10:17 PM Steve <smartin5590@gmail.com> wrote:
vim version: 9.0.1547

Getting the following errors when opening vim:

Error detected while processing C:\Users\smartin\.vimrc:
line  188:
E117: Unknown function: plug#begin
line  191:
E492: Not an editor command: Plug 'mattn/emmet-vim'
line  192:
E492: Not an editor command: Plug 'vim-utils/vim-man'

It appears that the plug.vim script is not being loaded, and the rest of the plugins loaded by that are failing.

Path to my .vim directory is the same as it has always been:

C:\Users\smartin\.vim

It's possible this problem occurred before 1547, but I haven't used vim for a few days now.

Installed vim via chocolatey.
--
Steve Martin

--
--
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/CADPQDN%2B3RVUbEG6hszoYwFecdoR1qJqyiExN-FSCGTKj1dDU4Q%40mail.gmail.com.

--
--
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/CAOmRJrfAsDfPyZdPOPD7jVF9msfE%3D7QayHRNN8Bh4YkN-w3cEA%40mail.gmail.com.