Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Some programs, like vim, look much better without the tmux status bar at the bottom. I have already set up a key that toggles the visibility of the status bar, but it would be even awesomer if the status bar just disappeared whenever I started vim.

Does tmux support anything so wonderful as this? Or could it be approached even from the .vimrc side? I would prefer something more elegant than alias vim='tmux set status; vim' if it is possible.

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Add this to your .vimrc file:

autocmd VimEnter,VimLeave * silent !tmux set status
share|improve this answer
2  
It isn't perfect! If you have two window in tmux and you'll run in every window vim, tmux status set off, and on at next vim. You can't use seperate status off by VimEnter and status on by VimLeave because of reason above. I think you should check if vim running or not (maybe via ps?) before run tmux set status. –  uzsolt May 28 '12 at 9:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.