Ticket #27870 (closed defect: duplicate)
Wrong tmux daemonization breaks commandline vim
|Reported by:||merijn@…||Owned by:||toby@…|
The most recent versions of tmux use daemon() to daemonize the server instead of the proper OSX function (_vprocmgr_detach_from_console) this causes tmux and (more importantly) all processes running within tmux to lose their association with the user's session.
In the case of commandline vim this means that vim is no longer capable of accessing the OS' clipboard meaning it becomes impossible to yank/paste from/to the OS clipboard when running vim within tmux.
This used to be fixed in an older version of tmux and was backed out for some odd reason. The latest revision I could find containing the necessary patch is: root/trunk/dports/sysutils/tmux/files/server.c.diff@60347