On 02/04/12 23:58, Ben Fritz wrote:
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.
if your using gvim then :tab help cmd will give you the help in a new
tab no split window
--
.~. In my life God comes first....
/V\ but Linux is pretty high after that :-D
/( )\ Francis (Grizzly) Smit
^^-^^ http://www.smit.id.au/
--
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