Thursday, August 1, 2019

setglobal, setlocal, set confusion

I found out about 'setglobal' and read the documentation. It seems I am
still confused and think that 'set' is more global than 'setglobal'
despite the name suggests.

I tried to set my spelllang with setglobal

setglobal spelllang=en,de

But I found that the spelling in my buffer did not checked for german
spelling problems.

:verbose set spellang
spellang=en

But

:verbose setglobal spellang
spelllang=en,de
Last set from ~/.vim/plugin/settings.vim line 34

So, I have to use 'set' instead of 'setglobal' to set spelllang
globally? What is a reasonable use case to use 'setglobal'?

Kai

--
--
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/20190801124944.GA6647%40machine.

No comments: