Hi Antonio,

Antonio Giovanni Colombo schrieb am 08.05.2019 um 21:17:
> 
> it turns out that executing the same commands on the same file on the same PC,
> using Windows Vim and using Ubuntu Vim, Vim does exactly the same things, but 
> in
> one case the message E764 is issued (Windows), while in the other case it is 
> not
> (Ubuntu). The situation can be appreciated looking at lines 406-407 (Windows -
> file verbosew.out) and at line 359 (Ubuntu - file verboseu.out) of the 
> attached
> files.
> 
> The commands are:
> 
> :set spell spelllang=en
> 
> and
> 
> zg 
> 
> I could try to solve the thing setting the option in my _vimrc/.vimrc, but it 
> is
> not a real solution, since I normally use different spell files in the same
> session, (usually English and Italian), and one cannot simply specify in which
> directory they all are.
> 
> But I feel that there is something done differently in Windows. I could try to
> trace where it happens, but I am not sure to be able to propose a correction.

I still think the reason for the different behaviour lies in some plugin that
initializes your 'spellfile' option on Ubuntu but does not on Windows -- either
because it's missing or it does not work or behaves differently.

Please check on Ubuntu how the 'spellfile' option was set by executing the
command

  :verbose set spellfile

Ah, I just saw this paragraph at ":help 'spellfile'":

        When a word is added while this option is empty Vim will set it for
        you: Using the first directory in 'runtimepath' that is writable.  If
        there is no "spell" directory yet it will be created.  For the file
        name the first language name that appears in 'spelllang' is used,
        ignoring the region.

Is at least one directory in you runtimepath writable?

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/2f8535de-3681-eaf8-c180-2dd1ed051497%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui