3 ms·
I've been using neovim as my terminal multiplexer for a couple years now. I can use all the same key commands for yanking and pasting buffers from a file buffer
by X6S1x6Okd1st 6y ago
I've been using neovim as my terminal multiplexer for a couple years now. I can use all the same key commands for yanking and pasting buffers from a file buffer to a terminal buffer.
- phasnox 6y agoI tried this once, but I can't recall why I stopped. Do you have any particular issue? Does it give you a real tty?
- gkop 6y agoFor me, when I went and tried a vim terminal buffer a few years back, I learned that my habituation to the emacs-style shell shortcuts (ctrl-a, ctrl-e, etc) was a significant (and dumb) barrier, that I didn't care to overcome.
- X6S1x6Okd1st 6y agoI will say that at default it's kind of a pain switching between terminal buffers and normal buffers. <C-\><C-n><C-w>l is just too much to type over and over. I do <Leader>l as the way of escaping any buffer I am and and moving the buffer to the right
- ma2rten 6y agoIs that very different from the Terminal in Vim 8.1+?
- X6S1x6Okd1st 6y agoI started using it before that was introduced. I haven't tried going back.
- u801e 6y agoI haven't used neovim, but it certainly is possible to use vim with its terminal feature as a terminal multiplexer. The way I do it is to use a single instance of vim to handle the multiplexing and just run whatever I need in different split windows or tabs. If I need to copy, I'll use the terminal normal mode (ctrl-w N) and visually highlight text and copy it to the + register. Then I can paste the contents in another application. The only issue I've encountered is that some text that's not supposed to be wrapped has line breaks added at the screen width. In that case, I'll paste the text into another vim buffer first and remove the line breaks using gJ. then copy and paste it into another application. For copying text from another application back into vim, I'll just highlight it with the mouse and paste it into vim using ctrl-w "*