adjust default value for wordcount extension

document default value for wordcount extension
add text file for wordcount extension
This commit is contained in:
Christian Brabandt 2016-01-14 21:43:45 +01:00
parent 83880b9a1f
commit f6fc6419be
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
" MIT License. Copyright (c) 2013-2015 Bailey Ling. " MIT License. Copyright (c) 2013-2015 Bailey Ling.
" vim: et ts=2 sts=2 sw=2 " vim: et ts=2 sts=2 sw=2
let s:filetypes = get(g:, 'airline#extensions#wordcount#filetypes', '\vhelp|markdown|rst|org') let s:filetypes = get(g:, 'airline#extensions#wordcount#filetypes', '\vhelp|markdown|rst|org|text')
let s:format = get(g:, 'airline#extensions#wordcount#format', '%d words') let s:format = get(g:, 'airline#extensions#wordcount#format', '%d words')
" adapted from http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim " adapted from http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim

View File

@ -413,6 +413,8 @@ 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)
< <
------------------------------------- *airline-whitespace* ------------------------------------- *airline-whitespace*
* enable/disable detection of whitespace errors. > * enable/disable detection of whitespace errors. >