" 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() if !exists('g:json_path') let g:json_path= "~/.config/nvim/cmds.json" endif