![]() This is simply aĬonsequence of vim being forced to resize the window due to there not beingĮnough space to adhere to the fixed window's preferred dimensions. The fixed window might end up with different dimensions after. It will work, but it can be a bit hard to follow the movement, and Moving through windows with 'winfixwidth' and / or 'winfixheight' can be aīit wonky. ![]() ![]() Pressing the character displayed in the statusline of the target window. Prompted to select the window you want to swap with. The far_ variants will move the window to the farĮnd of the viewport in the given direction. left, right, up, down, far_left, far_right, far_up, far_down.With : perform a one-shot move operation on the current window, Pressing one of HJKL, or shift + any arrow key. You can move the window to any of the far ends of the viewport by FAQs How do I change the sub-cursor highlight to match the current mode You can use autocmd to Change highlight. You can then move the window either by using hjkl or theĪrrow keys. When called without : starts Win-Move mode targeting the current " Start Win-Move mode: nnoremap WinShift nnoremap m WinShift " Swap two windows: nnoremap X WinShift swap " If you don't want to use Win-Move mode you can create mappings for calling the " move commands directly: nnoremap WinShift left nnoremap WinShift down nnoremap WinShift up nnoremap WinShift right Usage :WinShift Optionally create some mappings for starting Win-Move mode: integer filtered # The filtered list of window IDs. winids integer # The list of selectable window IDs. A function used to filter the list of selectable windows. pick_window(, - List of vim regex patterns matching ignored buffer names integer? winid # Either the selected window ID, or `nil` to - indicate that the user cancelled / gave an invalid selection. The window picker is used to select a window while swapping windows with -`:WinShift swap`. A function that should prompt the user to select a window. They are unset when you leave Win-Move mode.ĭisable_defaults = false, - Disable the default keymaps These are local options applied to the moving window while it's - being moved. Highlight_moving_win = true, - Highlight the window being movedįocused_hl_group = "Visual ", - The highlight group used for the moving window
0 Comments
Leave a Reply. |