Monday, October 25, 2010

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

Hi,

Fernando Basso schrieb:
> Thank you guys a lot. I didn't have time today to read the help about
> the functions
> used in the examples you have supplied.
>
> I'm running vim 7.3 on Arch Linux.
>
> I'm currently using this line:
> :set statusline=%f\ Buffer=%n\ %m\ %h\ %r\ %=Filetype=%y\ Dec=%b\ Hex=%B\ %{printf("Oct=%03o",char2nr(matchstr(getline("."),'.',col(".")-1)))}\ Line=%l\ Col=%c\ %P

either escape the double quotes with backslashes or use single quotes
instead. When not escaped, double quotes start a comment and the rest
of the line is ignored.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

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