You are not logged in.

#1 Today 13:15:29

carltm
Member
Registered: Today
Posts: 2

vim reports that nospellcap in an unknown option

The "set spell" command for vim works correctly, however the "nospellcap" option fails with this message:
E518: Unknown option: nospellcap

I've searched online, and the only reverence to this I can find is:
The nospellcap option is available in newer versions of Vim (starting from version 8.1). If your Vim version doesn't support this feature, you'll need to rely on manually managing how capitalization errors are handled.

I am using this version:
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Feb 17 2025 21:30:31)
Included patches: 1-1120
Compiled by Arch Linux

If I run "set spellcapcheck", it returns:
  spellcapcheck=[.?!]\_[\])'"^I ]\+

If I then run "set spellcapcheck=", it does indeed disable the spellcap check, without breaking the spellbad check.

Is there a more elegant way to resolve this?

Offline

#2 Today 14:51:58

002445
Member
Registered: 2021-10-07
Posts: 17

Re: vim reports that nospellcap in an unknown option

nospellcap

is not a vim option as far as I know. Did AI hallucinate this option for you?

Offline

#3 Today 16:26:54

carltm
Member
Registered: Today
Posts: 2

Re: vim reports that nospellcap in an unknown option

Good catch!  I didn't even consider that it could be a hallucination.

Well, on the good side I have posted a way to disable spellcap using "set spellcapcheck=".

Offline

#4 Today 16:57:52

002445
Member
Registered: 2021-10-07
Posts: 17

Re: vim reports that nospellcap in an unknown option

You actually asked AI and you didnt consider it could be completely made up?

Offline

Board footer

Powered by FluxBB