From 53c8aa4fd67d4c0c06ea3f58134fdbc92672f737 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 24 Nov 2016 15:19:46 +0100 Subject: [PATCH] enable wordcount for mail and tex filetypes --- autoload/airline/extensions/wordcount.vim | 2 +- doc/airline.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/wordcount.vim b/autoload/airline/extensions/wordcount.vim index c0a821b8..a3b10ed6 100644 --- a/autoload/airline/extensions/wordcount.vim +++ b/autoload/airline/extensions/wordcount.vim @@ -3,7 +3,7 @@ scriptencoding utf-8 -let s:filetypes = get(g:, 'airline#extensions#wordcount#filetypes', '\vhelp|markdown|rst|org|text|asciidoc') +let s:filetypes = get(g:, 'airline#extensions#wordcount#filetypes', '\vhelp|markdown|rst|org|text|asciidoc|tex|mail') let s:format = get(g:, 'airline#extensions#wordcount#format', '%d words') let s:formatter = get(g:, 'airline#extensions#wordcount#formatter', 'default') diff --git a/doc/airline.txt b/doc/airline.txt index d9109a58..2c497c16 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -451,7 +451,7 @@ eclim " the default value matches filetypes typically used for documentation " such as markdown and help files. let g:airline#extensions#wordcount#filetypes = ... - (default: markdown,rst,org,help,text) + (default: markdown,rst,org,help,text,tex,mail) * defines the name of a formatter for word count will be displayed: > " The default will try to guess LC_NUMERIC and format number accordingly