Sunday, December 11, 2011

Re: How to put a character the statusline?

This returns the decimal value of the byte (character) under the
cursor:

> set statusline+=%b " decimal byte

:help statusline
b N Value of byte under cursor.

Since 'b' returns the decimal value as a number (N), could something
like this work?
(I cannot get it to work)

set statusline+=%{nr2char(b)} " character under cursor

-Bill

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: