We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want equal sized windows whenever mergetool lays out the windows.
function s:on_mergetool_set_layout(split) wincmd = endfunction let g:MergetoolSetLayoutCallback = function('s:on_mergetool_set_layout')
This works for MergetoolToggleLayout (switching between lmr and lm), but not the initial layout from MergetoolStart.
lmr
lm
Using gvim started like this (see #17) :
gvim --nofork -c "simalt ~x" -c "let g:mergetool_args_order = 'MBLR'" -c "Merge" "%MERGED%" "%BASE%" "%LOCAL%" "%REMOTE%"
The text was updated successfully, but these errors were encountered:
Turns out simalt ~x (maximize) doesn't tell vim how wide it is fast enough or something. This can be reproduced without vim-mergetool:
simalt ~x
gvim --nofork +"simalt ~x" +vsplit +vsplit +"wincmd ="
The solution is to explicitly set columns to it's maximum before using simalt
gvim --nofork +"set columns=9999" +"simalt ~x" +vsplit +vsplit +"wincmd ="
And the correct command for launching vim-mergetool:
gvim --nofork +"set columns=9999" +"simalt ~x" +"let g:mergetool_args_order = 'MBLR'" +"Merge" "%MERGED%" "%BASE%" "%LOCAL%" "%REMOTE%"
Sorry, something went wrong.
No branches or pull requests
I want equal sized windows whenever mergetool lays out the windows.
This works for MergetoolToggleLayout (switching between
lmr
andlm
), but not the initial layout from MergetoolStart.Using gvim started like this (see #17) :
The text was updated successfully, but these errors were encountered: