On 12/12/11 06:19, Bee wrote:
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
No. %b is a _code_ which conventionally adds to the statusline the
decimal value of the character under the cursor. The insides of %{} must
be an _expression_ which would have a meaning even outside the
'statusline' option. %{nr2char(b)} would only return something if you
had a global numeric _variable_ named b
Best regards,
Tony.
--
Whistler's Law:
You never know who is right, but you always know who is in
charge.
--
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