mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-08 04:54:44 +08:00
wordcount: Compatibility fixes and General upkeep
Compatibility: - Don't use a script-local function to update the format strings - Protect against `:normal!' moving the cursor on on the wordcount check Bugfix: - Let to_string() try to return something for all values - Now returns correctly when passed both 0 and '0' Upkeep: - Simplify check again no valid key from winwidth() - Old wordcount check: use matchstr() - more expressive and fewer steps - Improve documentation style/clarity/detail
This commit is contained in:
@@ -592,16 +592,15 @@ eclim <https://eclim.org>
|
||||
let g:airline#extensions#eclim#enabled = 1
|
||||
|
||||
------------------------------------- *airline-wordcount*
|
||||
display the word count of the document or visual selection
|
||||
|
||||
* enable/disable word counting. >
|
||||
* enable/disable word counting of the document/visual selection >
|
||||
let g:airline#extensions#wordcount#enabled = 1
|
||||
<
|
||||
* set list of filetypes for which word counting is enabled: >
|
||||
" the default value matches filetypes typically used for documentation
|
||||
" The default value matches filetypes typically used for documentation
|
||||
" such as markdown and help files.
|
||||
let g:airline#extensions#wordcount#filetypes =
|
||||
\ ['help', 'markdown', 'rst', 'org', 'text', 'asciidoc', 'tex', 'mail']
|
||||
" Use ['all'] to enable for all filetypes.
|
||||
|
||||
* defines the name of a formatter for word count will be displayed: >
|
||||
" The default will try to guess LC_NUMERIC and format number accordingly
|
||||
|
||||
Reference in New Issue
Block a user