From 2b238814d7c72783db2d541ef642ffd481eb0745 Mon Sep 17 00:00:00 2001 From: Jurica Bradaric Date: Sat, 7 May 2016 21:11:36 +0200 Subject: 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) https://github.com/vim/vim/commit/ed767a2073ef150971b0439a58e7ee582af6984e --- src/nvim/normal.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 57638ee388..f5607f3676 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -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; -- cgit