aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--vim/vimrc3
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4340835e..64fbabe8 100644
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,7 @@
install-vim-indent \
install-vim-plugin \
install-vim-syntax \
+ install-vim-thesaurus \
install-vint \
install-wget \
install-x \
@@ -630,6 +631,11 @@ install-vim-syntax:
mkdir -p -- $(VIMDIR)/syntax
cp -p -- vim/syntax/*.vim $(VIMDIR)/syntax
+install-vim-thesaurus:
+ mkdir -p -- $(VIMDIR)/ref
+ curl 'https://sanctum.geek.nz/ref/thesaurus.txt' \
+ > $(VIMDIR)/ref/thesaurus.txt
+
install-vint:
cp -p -- vint/vintrc.yaml $(HOME)/.vintrc.yaml
diff --git a/vim/vimrc b/vim/vimrc
index 8e332960..f2ec6de8 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -156,6 +156,9 @@ set splitright " Right of the current window, not left
" Don't try to syntax highlight run-on lines
set synmaxcol=500
+" Add thesaurus; install with `make install-vim-thesaurus`
+execute 'set thesaurus^='.vimrc#EscapeSetPart($MYVIM.'/ref/thesaurus.txt')
+
" PuTTY is a fast terminal, but Vim doesn't know that yet
if &term =~# '^putty'
set ttyfast