Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delaying or disabling auto-hide of information returned by {Visual}g CTRL-G

Tags:

vim

Following docs:

Visual g CTRL-G Similar to g CTRL-G, but Word, Character, Line, and Byte counts for the visually selected region are displayed. In Blockwise mode, Column count is also shown.

I frequently made use of g Ctrl-G shortcut to get count of words and characters within selection while in Visual mode. On example of the document containing:

Sample document with some text

This provides the desired result and prints the number of characters 30 + 1 correctly. My problem is that, the information disappears fairly quickly as for my taste. This is shown below:

number of characters in visual mode

I would like to either:

  • Increase the time during which the count information is available
  • Disable auto-hide permanently and keep the details visible unless explicitly instructed to hide
like image 430
Konrad Avatar asked Oct 23 '25 14:10

Konrad


1 Answers

You could set the option:

set noshowmode

This will prevent printing mode messages like -- INSERT -- or -- VISUAL LINE --. Therefore the information printed by g_ctrl-G will remain in the last line until a new command-line command is entered.

like image 181
builder-7000 Avatar answered Oct 26 '25 07:10

builder-7000