summaryrefslogtreecommitdiff
path: root/plugin/latex-wordcount.vim
blob: 1ea85fe0df2e21cbda18e20217a8d5298998b52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
" 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 <https://sourceobby.com>

" 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()

if !exists('g:json_path')
    let g:json_path= "~/.config"
endif
"
"if !exists('g:my_plugin_max_items')
"    let g:my_plugin_max_items = 50
"endif