On Sunday, April 1, 2012 5:52:39 AM UTC-5, Thilo Six wrote: > 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 > >
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. -- 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
