I like mixing the keyboard and mouse. Yes I know

set mouse=a

exists, but it provides only some basic actions. I was wondering if you could map the mouse to allow moving split window panes around - something which is painful to do by keyboard. Do you know of something like this?

#vim #neovim

@vim @neovim

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 3 years ago (2 children)

@ashwinvis @vim @neovim This _should_ work out of the box…? Does mouse dragging allow you to create a visual selection? If not, your terminal’s mouse reporting is probably not recognized correctly by (Neo)Vim, or it doesn’t report dragging at all.

  • source
  • hideshow 4 child comments
  • [–] 4 points 3 years ago* (1 child)

    @scy @ashwinvis @vim @neovim in my experience this works for *resizing* but not moving windows/panels around.

    My solution to that is keyboard driven, but it's a plugin i wrote which allows swapping the currently focused window with a different one, by typing its letter.

    I only tested it on vim, not neovim, but if it's possible to make it neovim compatible, i do welcome patches.

    https://asciinema.org/a/0laV3PGpmCXkkazet0hIRf51W

    https://github.com/tshirtman/vim-winny

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 4 points 3 years ago (2 children)

    @tshirtman
    Ooh... like a tiling window manager. I will check it out. I like the labelled popups in front of panes.

    I see something similar written in Lua.

    https://github.com/sindrets/winshift.nvim

    @scy @vim @neovim

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 3 points 3 years ago (1 child)

    @scy
    I can select text, resize window panes - that works.

    What I am looking for is a way to:

    move left pane to right,
    move bottom right pane to top left corner etc.

    @vim @neovim

  • source
  • parent
  • hideshow 2 child comments