vim-patch:7.4.1042

Problem:    g-CTRL-G shows the word count, but there is no way to get the word
            count in a script.
Solution:   Add the wordcount() function. (Christian Brabandt)

ed767a2073
This commit is contained in:
Jurica Bradaric
2016-05-07 21:11:36 +02:00
parent b02ba11cb1
commit 2b238814d7
8 changed files with 312 additions and 88 deletions

View File

@@ -6737,16 +6737,12 @@ static void nv_g_cmd(cmdarg_T *cap)
clearopbeep(oap);
break;
/*
* "g CTRL-G": display info about cursor position
*/
// "g CTRL-G": display info about cursor position
case Ctrl_G:
cursor_pos_info();
cursor_pos_info(NULL);
break;
/*
* "gi": start Insert at the last position.
*/
// "gi": start Insert at the last position.
case 'i':
if (curbuf->b_last_insert.mark.lnum != 0) {
curwin->w_cursor = curbuf->b_last_insert.mark;