made the pack completely portable and wrote relevent bat files to go with it
This commit is contained in:
21
gitportable/usr/share/vim/vim91/spell/check_locales.vim
Normal file
21
gitportable/usr/share/vim/vim91/spell/check_locales.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
" Script to check if all the locales used in spell files are available.
|
||||
|
||||
grep /sys env LANG/ */main.aap
|
||||
let not_supported = []
|
||||
for item in getqflist()
|
||||
let lang = substitute(item.text, '.*LANG=\(\S\+\).*', '\1', '')
|
||||
try
|
||||
exe 'lang ' . lang
|
||||
catch /E197/
|
||||
call add(not_supported, lang)
|
||||
endtry
|
||||
endfor
|
||||
|
||||
if len(not_supported) > 0
|
||||
echo "Unsupported languages:"
|
||||
for l in not_supported
|
||||
echo l
|
||||
endfor
|
||||
else
|
||||
echo "Everything appears to be OK"
|
||||
endif
|
||||
Reference in New Issue
Block a user