commit 70be43b725447712d937d126a38cf902aa50c667 parent cb85b88fc87e0e7fdea81080f1c7b3a3ce2338a7 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Tue, 11 Sep 2018 10:03:39 +0200 Merge branch 'master' of a3nm.net:git/mybin Diffstat:
git-gc-all | | | 10 | ++++++++++ |
vispell | | | 7 | ++++++- |
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/git-gc-all b/git-gc-all @@ -0,0 +1,10 @@ +#!/bin/bash + +cd "$HOME/git" +for a in *; +do + cd "$a" + git gc --quiet + cd .. +done + 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"