Fork me on GitHub
#vim
<
2017-10-13
>
fatihict14:10:53

Does anyone here use the terminal support in Neovim and if so for what purpose? I currently use vim with tmux and don't see how the terminal support can improve my workflow, but maybe that'll change based on what you folks are doing

dominicm14:10:11

I do, but I don't use tmux.

dominicm14:10:26

I think it's useful to hook up for git push to run in.

fatihict14:10:25

Hmm, interesting

dave15:10:24

@fatihict your impression of the terminal support is the same as mine. i use tmux and find it much more useful to just open up a tmux split

dave15:10:39

i'm a big fan of https://github.com/benmills/vimux, i use that a lot too

dave15:10:40

e.g. when i want to git push, i type <leader>v git push<CR> and a small tmux split appears, running the command i just typed

dave15:10:52

then i can type <leader>V to close it

dave15:10:20

the bindings are mine, but they just call vimux commands

dave15:10:25

going a step further, when i'm in the zone and i want to e.g. run some arbitrary command in the Vimux split to test the code i'm writing every time i save a file, i set up an autocmd to do that on file write

dave15:10:47

it's a pretty sweet setup

dominicm15:10:29

I wonder if anyone has hooked up dispatch to vimux

jebberjeb15:10:25

@fatihict I’d used the terminal support for my socketrepl plugin to display the repl output. Was just easier to write it to a file, then split a buffer and tail -f that buffer via :term.

jebberjeb16:10:01

I’m torn between :term and tmux. Sometimes I make a tab, with a term, for running tests & sometimes I just split off a tmux window/pane.

jebberjeb16:10:06

tmux is more reusable knowledge, I suppose. But when I want to copy/paste a lot between buffers, I’ll use :term (even though it’s pretty easy to do w/ tmux as well)

fatihict16:10:37

I have my clipboards between vim and my system synced and switching between vim and tmux split is with the same commands thanks to: https://github.com/christoomey/vim-tmux-navigator.

jebberjeb16:10:05

hmm, so my vim & tmux can share the same clipboard?

fatihict17:10:04

@jebberjeb Yeah, I have this in my .tmux.conf:

# Vi copypaste mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'

" And this in my init.vim
set clipboard=unnamedplus

fatihict17:10:36

I also have mappings like: nmap <Leader>yy "qyy and nmap <Leader>p "qp for when I don't want my vim to copy/paste from system clipboard

dave17:10:12

that sounds a lot like my setup, except that NOT copying to/from system clipboard is my preferred default 🙂

dave17:10:24

i have a mapping that copies to/pastes from the system clipboard

fatihict17:10:12

Hehehe nice 😄

fatihict17:10:11

By the way, I tried vimux. Looks pretty cool, gotta use this more. Thanks for the tip 🍻