rhysd / committia.vim

A Vim plugin for more pleasant editing on commit messages
MIT License
731 stars 30 forks source link

Feature suggestion: option to equalize windows on open #68

Open mmrwoods opened 3 weeks ago

mmrwoods commented 3 weeks ago

Hi @rhysd,

In my vimrc, I have this little hack to equalize committia windows on open...

" Equalize committia windows, I use multiple laptops and external monitors
let g:committia_hooks = {}
function! g:committia_hooks.edit_open(info)
  wincmd =
endfunction

I share my vimrc among multiple laptops with different screen sizes and a variety of external monitors, so fixed window sizes when using committia.vim doesn't really suit me. I imagine I'm not entirely alone here.

Do you think it's worth adding this as a feature to committia.vim, controlled by a variable like g:committia_equalize_windows (default 0, if 1, do wincmd= on open)?

I'm happy so submit a PR if you think this is useful.