Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gvimdiff を起動すると、2 つのウィンドウがウィンドウ幅の 50% を占有します。まさに私が欲しいもの。
ただし、ウィンドウ マネージャーを使用して gvimdiff ウィンドウを最大化すると、左側のウィンドウの幅はそのままで、余分な幅はすべて右側のウィンドウに割り当てられます。最大化するとき (または、より一般的には、水平方向のサイズ変更操作の場合)にウィンドウ幅を 50/50 に保つ方法はありますか?
これには選択肢がないと思います。autocmdイベントに近づくことができますVimResized:
autocmd
VimResized
autocmd VimResized * normal ^w=
は+^wによって生成されCtrl-vますw。または制御文字なし:
^w
autocmd VimResized * exec "normal \<C-w>="