Skip to content
New issue

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

Add win_splitmove function, to move a window into split of a given window #4561

Closed
wants to merge 1 commit into from

Commits on Sep 10, 2019

  1. Add win_splitmove function, to move a window into

    ...a split of a given window.  Allows complex modifications of window
    layouts, for example, converting vertical splits to horizontal splits
    and moving a window from left stack of panes to a right stack of panes.
    
    win_splitmove({nr}, {target} [, {options}])		*win_splitmove()*
    	        Move the window {nr} to a new split of the window {target}.
    		This is similar to moving to {target}, creating a new window
    		using |:split| but having the same contents as window {nr}, and
    		then closing {nr}.
    
    		Both {nr} and {target} can be window numbers or |window-ID|s.
    
    		{options} is a Dictionary with the following optional entries:
    		  "vertical"	When TRUE, the split is created vertically,
    				like with |:vsplit|.
    		  "rightbelow"	When TRUE, the split is made below or to the
    				right (if vertical).  When FALSE, it is done
    				above or to the left (if vertical).  When not
    				present, the values of 'splitbelow' and
    				'splitright' are used.
    andymass committed Sep 10, 2019
    Copy the full SHA
    6d1fe69 View commit details
    Browse the repository at this point in the history