summarylogtreecommitdiffstats
path: root/thesaurus-query.install
diff options
context:
space:
mode:
Diffstat (limited to 'thesaurus-query.install')
-rw-r--r--thesaurus-query.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/thesaurus-query.install b/thesaurus-query.install
new file mode 100644
index 000000000000..e46814151bee
--- /dev/null
+++ b/thesaurus-query.install
@@ -0,0 +1,20 @@
+update_helptag() {
+ echo -n "Updating vim help tags..."
+ /usr/bin/vim --noplugins -u NONE -U NONE --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done. "
+}
+
+post_install() {
+ update_helptag
+ echo "To use it for thesaurus query:"
+ echo " In normal or visual mode: $(tput bold)<leader>cs$(tput sgr0)"
+ echo " in insert mode with cursor at end of target word: $(tput bold)<c-x><c-u>$(tput sgr0)"
+}
+
+post_upgrade() {
+ update_helptag ${1}
+}
+
+post_remove() {
+ update_helptag
+}