Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / vim / vim74 / spell / | server ip : 104.21.89.46 your ip : 172.70.80.236 H O M E |
Filename | /usr/share/vim/vim74/spell/check_locales.vim |
Size | 463 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:56 |
Last modified | 03-Jan-2014 03:40 |
Last accessed | 06-Jul-2025 12:53 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
" 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
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