Sunday, October 10, 2010

Re: how to display window number?

On 10 October 2010 00:47, Tony Mechelynck <antoine.mechelynck@gmail.com> wrote:
> - To display the window number on the status line: use a custom status line
> (see http://vim.wikia.com/wiki/Show_fileencoding_and_bomb_in_the_status_line
> for an example) and include in it the string
>
>    %{winnr()}
>
> where you want the window number to appear. Add any spaces, punctuation,
> etc. to your liking outside the %{...} and remember that in the operand of a
> :set statement, any spaces, double quotes, vertical bars or backslashes must
> be backslash-escaped.

This is interesting. What would I need to go away and read to
conditionally only display this number if there's >1 split window? I
basically only want to display that number from ${winnr()} if I've
split a window, not if it just contains one split.

Kindly,

-- Thomas Adam

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