From 10766635d7204490b2d9b96189aacf9c2c723835 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Tue, 14 Jul 2026 22:56:34 -0400 Subject: feat: initial commit --- plugin/latex-wordcount.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugin/latex-wordcount.vim (limited to 'plugin') diff --git a/plugin/latex-wordcount.vim b/plugin/latex-wordcount.vim new file mode 100644 index 0000000..098573f --- /dev/null +++ b/plugin/latex-wordcount.vim @@ -0,0 +1,19 @@ +" Title: latex-wordcount.vim +" Description: A plugin to provide a more accurate wordcount of a LaTeX +" document +" Last Change: 14 July, 2026 +" Maintainer: Joshua Liu + +" Prevents the plugin from being loaded multiple times. If the loaded +" variable exists, do nothing more. Otherwise, assign the loaded +" variable and continue running this instance of the plugin. +if exists("g:loaded_latex-wordcount") + finish +endif +let g:loaded_latex-wordcount = 1 + +" Exposes the plugin's functions for use as commands in Vim. +command! -nargs=0 GetWordCountSingle call latex-wordcount#GetWordCountSingle() +command! -nargs=0 GetWordCountMulti call latex-wordcount#GetWordCountMulti() +"command! -nargs=0 AspellCheck call latex-wordcount#AspellCheck() + -- cgit v1.2.3