diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-10 01:40:32 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-10 01:40:32 -0400 |
commit | 71ac92efc743b3580150fb72e1c90b4c21a35916 (patch) | |
tree | 0f1d3a872d4110685ec1d9fdb635267f9e47de4f /runtime/doc/eval.txt | |
parent | a2b888d3830de97eb093a29c930851ceacbd454a (diff) | |
parent | 2b238814d7c72783db2d541ef642ffd481eb0745 (diff) | |
download | rneovim-71ac92efc743b3580150fb72e1c90b4c21a35916.tar.gz rneovim-71ac92efc743b3580150fb72e1c90b4c21a35916.tar.bz2 rneovim-71ac92efc743b3580150fb72e1c90b4c21a35916.zip |
Merge pull request #4720 from jbradaric/vim-7.4.1042
vim-patch:7.4.1042
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 99b8760402..6a37d222bd 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2139,6 +2139,7 @@ winrestcmd() String returns command to restore window sizes winrestview( {dict}) none restore view of current window winsaveview() Dict save view of current window winwidth( {nr}) Number width of window {nr} +wordcount() Dict get byte/char/word statistics writefile( {list}, {fname} [, {flags}]) Number write list of lines to file {fname} xor( {expr}, {expr}) Number bitwise XOR @@ -7113,6 +7114,28 @@ winwidth({nr}) *winwidth()* : exe "normal 50\<C-W>|" :endif < +wordcount() *wordcount()* + The result is a dictionary of byte/chars/word statistics for + the current buffer. This is the same info as provided by + |g_CTRL-G| + The return value includes: + bytes Number of bytes in the buffer + chars Number of chars in the buffer + words Number of words in the buffer + cursor_bytes Number of bytes before cursor position + (not in Visual mode) + cursor_chars Number of chars before cursor position + (not in Visual mode) + cursor_words Number of words before cursor position + (not in Visual mode) + visual_bytes Number of bytes visually selected + (only in Visual mode) + visual_chars Number of chars visually selected + (only in Visual mode) + visual_words Number of chars visually selected + (only in Visual mode) + + *writefile()* writefile({list}, {fname} [, {flags}]) Write |List| {list} to file {fname}. Each list item is |