tmux tabs with name of file open in vim
I'm new to tmux and am trying to figure out how to edit the configuration so that windows with vim open show up in the taskbar not as #:vim but as whatever the name of the file open in vim is (ie "#:filename.php") . Seems like it should be a common thing, but my search - foo is failing. chepner Here's a partial answer. It can be improved, but I don't have time to work it out right now. Put the following in your .vimrc : autocmd BufReadPost,FileReadPost,BufNewFile * call system("tmux rename-window " . expand("%")) There are other events (see :help autocmd-events in Vim) that may be used to