myconfig

my config files
git clone https://a3nm.net/git/myconfig/
Log | Files | Refs | README

commit 88ba4d457bee7b849144eb2cf87b0aeae7af1b13
parent 438ade3f4035dba5875cfc69b6b2ff5e068dbd56
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Tue,  4 Sep 2018 16:13:13 +0200

Merge branch 'master' of a3nm.net:git/myconfig

Diffstat:
apt/server | 2+-
vim/spell.vim | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/apt/server b/apt/server @@ -27,7 +27,7 @@ dnsutils ethtool liburi-perl # for ~/bin/mail_summary libmime-tools-perl # for ~/bin/mail_summary -libssl-dev # to build libircclient +libssl1.0-dev # to build libircclient libtool # for libtoolize, for builds archivemount autoconf diff --git a/vim/spell.vim b/vim/spell.vim @@ -0,0 +1,23 @@ +fun! SpellNext() + " from https://vi.stackexchange.com/a/17267/ + " Go to start of buffer and enable spell checking. + normal! gg + set spell + + " Record cursor position. + let l:pos = getpos('.') + + " Special case: first word is misspelled. + if spellbadword()[1] isnot# '' + return + endif + + " Try to find a misspelled word. + normal! ]s + + " No more words left if the position is unchanged from last + " time, so quit Vim. + if getpos('.') == l:pos + quit + endif +endfun