diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2015-04-14 12:28:31 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-04-14 17:49:37 -0400 |
commit | a86193d88edda899dd9859c21554fd6e17cdcb3e (patch) | |
tree | 3fd3cf69d82081c00f317620e11984e1d9d9bedd /runtime/tools/vimspell.sh | |
parent | b47ea5fcdefb2ce33bae3d61d79310646aa8d1a1 (diff) | |
download | rneovim-a86193d88edda899dd9859c21554fd6e17cdcb3e.tar.gz rneovim-a86193d88edda899dd9859c21554fd6e17cdcb3e.tar.bz2 rneovim-a86193d88edda899dd9859c21554fd6e17cdcb3e.zip |
Remove runtime/tools/ #2426
This directory contains old (at least 10+ years) scripts that mainly filter
output of other old programs to make them conformant with an 'errorformat'
from 10+ years ago.
Diffstat (limited to 'runtime/tools/vimspell.sh')
-rwxr-xr-x | runtime/tools/vimspell.sh | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/runtime/tools/vimspell.sh b/runtime/tools/vimspell.sh deleted file mode 100755 index d336fe6c31..0000000000 --- a/runtime/tools/vimspell.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# -# Spell a file & generate the syntax statements necessary to -# highlight in vim. Based on a program from Krishna Gadepalli -# <krishna@stdavids.picker.com>. -# -# I use the following mappings (in .vimrc): -# -# noremap <F8> :so `vimspell.sh %`<CR><CR> -# noremap <F7> :syntax clear SpellErrors<CR> -# -# Neil Schemenauer <nascheme@ucalgary.ca> -# March 1999 -# updated 2008 Jul 17 by Bram -# -# Safe method for the temp file by Javier Fernández-Sanguino_Peña - -INFILE=$1 -tmp="${TMPDIR-/tmp}" -OUTFILE=`mktemp -t vimspellXXXXXX || tempfile -p vimspell || echo none` -# If the standard commands failed then create the file -# since we cannot create a directory (we cannot remove it on exit) -# create a file in the safest way possible. -if test "$OUTFILE" = none; then - OUTFILE=$tmp/vimspell$$ - [ -e $OUTFILE ] && { echo "Cannot use temporary file $OUTFILE, it already exists!"; exit 1 ; } - (umask 077; touch $OUTFILE) -fi -# Note the copy of vimspell cannot be deleted on exit since it is -# used by vim, otherwise it should do this: -# trap "rm -f $OUTFILE" 0 1 2 3 9 11 13 15 - - -# -# local spellings -# -LOCAL_DICT=${LOCAL_DICT-$HOME/local/lib/local_dict} - -if [ -f $LOCAL_DICT ] -then - SPELL_ARGS="+$LOCAL_DICT" -fi - -spell $SPELL_ARGS $INFILE | sort -u | -awk ' - { - printf "syntax match SpellErrors \"\\<%s\\>\"\n", $0 ; - } - -END { - printf "highlight link SpellErrors ErrorMsg\n\n" ; - } -' > $OUTFILE -echo "!rm $OUTFILE" >> $OUTFILE -echo $OUTFILE |