Friday, October 14, 2016

Re: Trying to download spellchecking file and getting error "Sorry, download failed"

I have solved the problem.

Vim spellcheckers are saved at:
http://ftp.vim.org/vim/runtime/spell/

For my need Windows-1250 code page I needed to download:
http://ftp.vim.org/vim/runtime/spell/sl.cp1250.spl

Then there are two options:
a) system wide for all users
b) per particular user

Ad a) Find out where is system directory in Vim by entering command:
:echo $VIMRUNTIME
It displays like: C:\Programs\Vim\vim80 (this is vim install directory).
Copy sl.cp1250.spl into "spell" sub-directory, so final path should be:
C:\Programs\Vim\vim80\spell\sl.cp1250.spl

Ad b) Find out where is vim profile in Vim by entering command:
:echo $USERPROFILE
It displays: C:\Users\[user]
Copy sl.cp1250.spl into "spell" sub-directory, so final path should be:
C:\Users\[user]\spell\sl.cp1250.spl

I restarted Vim to make sure it recognized new settings.

To turn on Slovenian spellcheck in Vim for current buffer by entering command:
:setlocal spell spelllang=si

To change spell to English:
:setlocal spell spelllang=en

To turn off spell:
:setlocal nospell

Note: I have also created keyboard shortcuts for above.



--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment