Friday, May 28, 2010

Re: Determine how many windows are on screen (P.S.)

On 28/05/10 14:30, David Fishburn wrote:
[...]
> More specifically, I am trying to determine if a user just opened Vim
> and they are sitting at the [No Name] buffer.
[...]

:if winnr('$') == 1 && bufname('%') == ""


Best regards,
Tony.
--
Take everything in stride. Trample anyone who gets in your way.

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