From f6fc6419be3938f3a543494b12782b69d87c6c74 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Thu, 14 Jan 2016 21:43:45 +0100 Subject: [PATCH] adjust default value for wordcount extension document default value for wordcount extension add text file for wordcount extension --- autoload/airline/extensions/wordcount.vim | 2 +- doc/airline.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/wordcount.vim b/autoload/airline/extensions/wordcount.vim index e6462322..9439ff2e 100644 --- a/autoload/airline/extensions/wordcount.vim +++ b/autoload/airline/extensions/wordcount.vim @@ -1,7 +1,7 @@ " MIT License. Copyright (c) 2013-2015 Bailey Ling. " 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') " adapted from http://stackoverflow.com/questions/114431/fast-word-count-function-in-vim diff --git a/doc/airline.txt b/doc/airline.txt index 7911a69f..2460ae37 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -413,6 +413,8 @@ 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) + < ------------------------------------- *airline-whitespace* * enable/disable detection of whitespace errors. >