On 14-Sep-09 15:05, Spencer Collyer wrote:
> I wouldn't say exactly that it bothers me, but I would prefer it if the
> help window could be made to always open at the top of the current
> window, no matter what the setting of 'splitbelow' is. It's just a
> personal preference, and I'll probably try writing a function to cope
> with it.
You could override the :help command with the help of the "cmdalias" plugin, 
http://www.vim.org/scripts/script.php?script_id=746.

Or use the 'filetype' event; for example, I have an autocmd that automatically 
maximizes the help window when in a blank tab page:

" Do not create a split for a help window if the only other window is a blank
" buffer. Instead, maximize the help window. This is useful when a help page is
" opened in a new tab page as a reference.
function! s:MaximizeHelpWindow()
     if winnr('$') == 2
        let l:otherBufNr = winbufnr(2)
        if (empty(bufname(l:otherBufNr)) &&
        \ getbufvar(l:otherBufNr, '&modified') == 0 &&
        \ empty(getbufvar(l:otherBufNr, '&buftype'))
        \)
            only
        endif
     endif
endfunction
augroup MaximizeHelpWindow
     autocmd!
     autocmd FileType help call <SID>MaximizeHelpWindow()
augroup END

-- cheers, ingo

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui