Monday, October 25, 2010

Statusline with %b, %B and %O matching ga

I'd like the statusline to match the result of when we hit ga while
the cursor
is on a char.

For example, if the cursor is over 'a', ga gives me:
<a> 97, Hex 61, Octal 141

However statusline with Dec=%b\ Hex=%B\ Oct=%O gives me
Dec=97 Hex=61 Oct=1

So, I would like to have the 'Oct' (in my statusline) to be the same
'Octal' value we get when hitting 'ga'.

Any help would be appreciated. Thanks in advance.

--
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:

Post a Comment