News for hackers. Stuff that matters.
Re:Benefits of using tmux – streamlining your development en... by kornish on Tuesday November 08, 2016 @04:23PM (#12904063)
What I do, and would recommend, is spin up vim or emacs as a daemon, then connect to it as a client in one or more tmux windows.

That way, you can yank/put easily using the usual shortcuts from any tmux window to any tmux window. Then, it's usually easiest to only use intra-process pane splitting (keeping it all in vim or emacs) unless you need to do something that doesn't follow a perfect division, like:

top half vim / bottom left vim / bottom right trailing logfile

or something.

More than happy to write a blog post, if you're interested.

Re:Benefits of using tmux – streamlining your development en... by nilkn on Tuesday November 08, 2016 @04:41PM (#12904204)
I already use tmux and vim regularly but I'd definitely be interested in a blog post on this technique.
Re:Benefits of using tmux – streamlining your development en... by pfranz on Tuesday November 08, 2016 @05:48PM (#12904644)
Interesting to run it as a daemon and connect. I'd be curious to see how you set it up and use it in practice. Whenever I use vim splits I'm almost always diffing left and right. So, nothing fancy.
Re:Benefits of using tmux – streamlining your development en... by kornish on Tuesday November 08, 2016 @06:08PM (#12904767)
Definitely. If you shoot me an email ([email protected]) I'll let you know when the post is up. As a disclaimer, I use emacs with evil mode, not vim proper, so the command is just

  emacs --daemon=myproject
Then it's just

  emacsclient -nw -s myproject ./directoryhere
to connect, and the first part of that can be aliased away. Not 100% sure that vim has a good daemon/client mode, but I seem to recall something existing along those lines. It can be extremely useful to have multiple collections of editor panes set up, each in a different part of the codebase, and the ability to switch back and forth quickly with tmux - really helps for debugging and keeping organized.