commit aa259040be84dce752908c50eaa4bcbf0d06565c parent 72f9122c48942b05f5dc71a670624dd9e1d1270d Author: Antoine Amarilli <a3nm@a3nm.net> Date: Tue, 4 Sep 2018 08:03:22 +0200 close vispell if there are no errors Diffstat:
vispell | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/vispell b/vispell @@ -3,8 +3,13 @@ # work around the problems induced by wrong LaTeX highlighting missing some # typos +# also close files automatically if there is no typo + +# TODO: use tabs? https://vi.stackexchange.com/a/17267 + FILE="$1" LANG="${2:-en}" -vim -c 'syntax off' -c 'set spell' -c "set spelllang=$LANG" "$FILE" +vim -c 'syntax off' -c 'set spell' -c "set spelllang=$LANG" \ + -S ~/config/vim/spell.vim -c ":call SpellNext()" "$FILE"