mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 20:24:27 +08:00
enable wordcount for mail and tex filetypes
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
scriptencoding utf-8
|
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:format = get(g:, 'airline#extensions#wordcount#format', '%d words')
|
||||||
let s:formatter = get(g:, 'airline#extensions#wordcount#formatter', 'default')
|
let s:formatter = get(g:, 'airline#extensions#wordcount#formatter', 'default')
|
||||||
|
|
||||||
|
|||||||
@@ -451,7 +451,7 @@ eclim <https://eclim.org>
|
|||||||
" the default value matches filetypes typically used for documentation
|
" the default value matches filetypes typically used for documentation
|
||||||
" such as markdown and help files.
|
" such as markdown and help files.
|
||||||
let g:airline#extensions#wordcount#filetypes = ...
|
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: >
|
* defines the name of a formatter for word count will be displayed: >
|
||||||
" The default will try to guess LC_NUMERIC and format number accordingly
|
" The default will try to guess LC_NUMERIC and format number accordingly
|
||||||
|
|||||||
Reference in New Issue
Block a user