vim - Is there a quick way to rebuild spell files from wordlists? -


is there way tell vim update spell files languages listed in 'spelllang' pick wordlist changes outside of vim?

i've started checking wordlist file git since i'm tired of adding same words on multiple computers. don't want add spell file git repo since merges ugly every time, whenever open vim, recent updates ignored until inside vim rebuilds spell file, such zg add word dictionary.

i've solved adding *.spl .gitignore file , in vimrc (which synced git, add:

for d in glob('~/.vim/spell/*.add', 1, 1)     if filereadable(d) && (!filereadable(d . '.spl') || getftime(d) > getftime(d . '.spl'))         exec 'mkspell! ' . fnameescape(d)     endif endfor 

source: https://vi.stackexchange.com/questions/5050/how-to-share-vim-spellchecking-additions-between-multiple-machines

this cause vim rebuild .spl file each time .add file has been updated when vim started.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -