Skip to content

How do I wire up mouse copy through macOS ghostty -> eternal terminal -> tmux on headless server -> neovim #5168

Answered by d5ve
d5ve asked this question in Q&A
Discussion options

You must be logged in to vote

You can disable all the new mouse support with the following in your vimrc, and that works for my purposes.

    if (has('nvim'))
        set mouse=
    endif

Plus :help mouse has To temporarily disable mouse support, hold the shift key while using the mouse.

This allows you to keep the fancy new mouse features enabled, but also easily select and copy buffer text as well as the current filename from the statusline into your clipboard.

Full help text:

:help mouse
'mouse'                 string  (default "nvi")
                        global
        Enables mouse support. For example, to enable the mouse in Normal mode
        and Visual mode:
                set mouse=nv

        To tempora…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by d5ve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants