Re:Tmux and Vim – better together
by red2awn on Thursday April 20, 2017 @08:41AM
(#14156092)
Neovim got a great builtin terminal emulator so I can just treat it like any other vim panes.
[ Parent
| on HN ]
The last time I looked at the terminal emulator built into Neovim the keybindings were terrible. What keys do you personally use for navigating in and out of TERMINAL buffers?
I use the bindings suggested in the Input section at https://neovim.io/doc/user/nvim_terminal_emulator.html. Took a little getting used to but now I quite like them.
I am using `jk` to switch to normal mode, <space>H/J/K/L to move around. Didn't have any problem with that.
This. I tried tmux but it required too much configuration, whereas Neovim just used my current terminal, already configured exactly the way I wanted it.
I had to make a few small tweaks, like making it easier to switch between VIM and terminal panes, but overall I'm very happy with the Neovim + terminal mode setup.
One of the attractions of tmux is that you can attach/detach sessions in arbitrary terminals, which is incredibly handy when working remotely.
Does Neovim provide this functionality?
Re:Tmux and Vim – better together
by placeybordeaux on Thursday April 20, 2017 @11:12AM
(#14157374)
Nope, abduco adds it pretty seemlessly without getting in the way, but unfortunately it doesn't seem to handle mouse events which I use occasionally with vim.
I've been using abduco and neovim as my dev environment for the past month or so and am very happy with the setup. I don't rely on mouse events so didn't notice that missing. Whenever I log in local or remote I start a new session or attach to the existing one with `abduco -A nvim nvim`.
Re:Tmux and Vim – better together
by placeybordeaux on Monday April 24, 2017 @11:50AM
(#14185257)
It's a really pretty awesome set up, but when I am primarily in terminal mode and have a lot of scroll back I want to yank from I frequently will reach for my mouse. Lack of mouse support has stopped me from using abduco consistently.
Seems like some solid software other than that, I'm glad there's an option that interferes so minimally.
I'm not sure if Neovim directly provides this functionality, though Neovim can be run inside a tmux session, and tmux sessions can run inside the Neovim terminal.
Last time I gave it a serious try I remember running in to a few oddities making me resort to keep using normal panes. Don't know if it's improved recently or if I were unlucky.
Normal panes are still nice in that they can be "far" from (n)vim; also sometimes I crash the editor and I wouldn't want my shells to vaporize.
How is the current status of Neovim? I think the last time I heard about was 3+ years ago.
It's great. I use it as my day to day.
Sane defaults, I barely have anything in my vimrc.
Re:Tmux and Vim – better together
by wodenokoto on Thursday April 20, 2017 @01:55PM
(#14159101)
Is neovim mature enough for day to day work?
Do you know any good beginners guide?
It's seamless. I've been using it for the past 6 months for almost all of my coding. The windows build is brand new and still has some problems, but assuming you're using *nix/mac, you won't have any issues.
Honestly the GitHub repo explains about everything. I check in on r/neovim, as the main contributor posts there often and helps people with problems/questions (I mostly just like reading about the new stuff their doing on the subreddit).