" Vim script to clean the ll.xxxxx.add files of commented out entries " Author: Antonio Colombo, Bram Moolenaar " Last Update: 2008 Jun 3 " Time in seconds after last time an ll.xxxxx.add file was updated " Default is one second. " If you invoke this script often set it to something bigger, e.g. 60 * 60 " (one hour) if !exists("g:spell_clean_limit") let g:spell_clean_limit = 1 endif " Loop over all the runtime/spell/*.add files. " Delete all comment lines, except the ones starting with ##. for s:fname in split(globpath(&rtp, "spell/*.add"), "\n") if filewritable(s:fname) && localtime() - getftime(s:fname) > g:spell_clean_limit if exists('*fnameescape') let s:f = fnameescape(s:fname) else let s:f = escape(s:fname, ' \|<') endif silent exe "tab split " . s:f echo "Processing" s:f silent! g/^#[^#]/d silent update close unlet s:f endif endfor unlet s:fname echo "Done"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
check_locales.vim | File | 463 B | 0644 |
|
cleanadd.vim | File | 934 B | 0644 |
|
en.ascii.spl | File | 554.71 KB | 0644 |
|
en.ascii.sug | File | 542.63 KB | 0644 |
|
en.latin1.spl | File | 556.75 KB | 0644 |
|
en.latin1.sug | File | 543.43 KB | 0644 |
|
en.utf-8.spl | File | 557.18 KB | 0644 |
|
en.utf-8.sug | File | 543.43 KB | 0644 |
|
fixdup.vim | File | 629 B | 0644 |
|
he.vim | File | 240 B | 0644 |
|
spell.vim | File | 118 B | 0644 |
|
yi.vim | File | 241 B | 0644 |
|