search

Home  >  Q&A  >  body text

How to make vim display the number of characters selected in VISUAL mode?

This is my status bar settings:

set statusline=%{&ff}\|%{&fenc!=''?&fenc:&enc}\|%y\|c:%v\,r:%l\ of\ %L\|%f

The display effect is

unix|utf-8|PERL|c:1,r:1 of 63|256.pl

I hope to add a display item to display the number of characters contained in VISUAL mode

PHPzPHPz2774 days ago764

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 16:40:02

    Write a function to calculate it yourself.

    PS: g Ctrl-g can check the number of selected characters.

    reply
    0
  • Cancelreply