mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 09:48:19 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user