D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
vim
/
vim80
/
spell
/
Filename :
fixdup.vim
back
Copy
" Vim script to fix duplicate words in a .dic file vim: set ft=vim: " " Usage: Edit the .dic file and source this script. let deleted = 0 " Start below the word count. let lnum = 2 while lnum <= line('$') let word = getline(lnum) if word !~ '/' if search('^' . word . '/', 'w') != 0 let deleted += 1 exe lnum . "d" continue " don't increment lnum, it's already at the next word endif endif let lnum += 1 endwhile if deleted == 0 echomsg "No duplicate words found" elseif deleted == 1 echomsg "Deleted 1 duplicate word" else echomsg printf("Deleted %d duplicate words", deleted) endif
Name
Size
Last Modified
Owner
Permissions
Actions
check_locales.vim
0.452
KB
August 02 2022 4:56:59
root
0644
cleanadd.vim
0.912
KB
August 02 2022 4:56:59
root
0644
en.ascii.spl
604.534
KB
August 02 2022 4:56:59
root
0644
en.ascii.sug
583.213
KB
August 02 2022 4:56:59
root
0644
en.latin1.spl
606.62
KB
August 02 2022 4:56:59
root
0644
en.latin1.sug
583.956
KB
August 02 2022 4:56:59
root
0644
en.utf-8.spl
607.048
KB
August 02 2022 4:56:59
root
0644
en.utf-8.sug
583.956
KB
August 02 2022 4:56:59
root
0644
fixdup.vim
0.614
KB
August 02 2022 4:56:59
root
0644
he.vim
0.234
KB
August 02 2022 4:56:59
root
0644
spell.vim
0.115
KB
August 02 2022 4:56:59
root
0644
yi.vim
0.235
KB
August 02 2022 4:56:59
root
0644
2017 © D7net | D704T team