Commit 53a5b3eb authored by Dom Sekotill's avatar Dom Sekotill
Browse files

vim spell update: clean removed (commented) values

Values are removed from spell files by vim by turning the first
character of a line into a hash/sharp (#) which makes the line
a comment*. Run a cleanup script to remove them from update.sh.

* A neat idea, as a point edit means the file does not need to be
re-written from the edit onwards.
parent 16438475
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7,5 +7,8 @@ for file in `dirname $0`/*.add; do
	mv "${file}" "${file}.tmp"
	sort -f -u "${file}.tmp" > "${file}"
	rm "${file}.tmp"
	ex -E ${silent_flag} -c ':mkspell! %' ${quit_flag} "${file}"
	ex -E ${silent_flag} \
		-c ':mkspell! %' \
		-c ':runtime spell/cleanadd.vim' \
		${quit_flag} "${file}"
done