Monday, April 2, 2012

Re: :help WITHOUT split screen

Hello Ben,


Excerpt from Ben Fritz:

-- <snip> --
> Yes, you could also use &buftype rather than &filetype. But this will never
> allow you to intentionally split a help window and look up a new topic to see
> two of them side-by-side. Hence the wincmd p stuff in my suggestion.

Good Point. This version seem to resemble this:

au bufwinenter *.txt
\ if &buftype == "help"
\ | if getwinvar(winnr("#"), '&ft') != 'help'
\ | wincmd T
\ | endif
\ | endif


--
Regards,
Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F


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