mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

vispell (357B)


      1 #!/bin/bash
      2 
      3 # work around the problems induced by wrong LaTeX highlighting missing some
      4 # typos
      5 
      6 # also close files automatically if there is no typo
      7 
      8 # TODO: use tabs? https://vi.stackexchange.com/a/17267
      9 
     10 FILE="$1"
     11 LANG="${2:-en}"
     12 
     13 vim -c 'syntax off' -c 'set spell' -c "set spelllang=$LANG" \
     14   -S ~/config/vim/spell.vim -c ":call SpellNext()" "$FILE"
     15