Hello Ben

Excerpt from Ben Fritz:
-- <snip> --
> I would lean toward something like this, were I to want an automatic method:
> 
> au bufwinenter *.txt
> \ if &filetype=='help' | wincmd p | 
> \   if &filetype!='help' | wincmd p | wincmd T | 
> \   else | wincmd p | endif | 
> \ endif

How about:
au bufwinenter *.txt
      \ if &buftype == "help"
      \ | wincmd T
      \ | endif


> Probably I would tweak this to not actually switch the window but use a 
> function to retrieve the option value without switching windows, but this 
> seems to work fairly well in a few minutes of testing.
> 
> I normally just prefix the :tab though, and don't really feel the need for 
> any automatic method.
> 

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

Reply via email to