Monday, October 25, 2010

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

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

It is giving the the message:
E540: Unclosed expression sequence: statusline=%f\ Buffer=%n\ %m\ %h\
%r\ %=Filetype=%y\ Dec=%b\ Hex=%B\ %{printf(

:help E540 was not enough for me to understand what is wrong. I think
I'm using that printf line wrongly.

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