Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deleted the unused file.

git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/trunk@1501 2a77ed30-b011-0410-a7ad-c7884a0aa172
  • Loading branch information...
commit 7718798ffe277834e21259ab9899ed9b65b64d5a 1 parent 24fa017
edyfox authored
Showing with 0 additions and 27 deletions.
  1. +0 −27 runtime/spell/fixdup
View
27 runtime/spell/fixdup
@@ -1,27 +0,0 @@
-" 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
Please sign in to comment.
Something went wrong with that request. Please try again.