sjl / vitality.vim

Make Vim play nicely with iTerm 2 and tmux.
http://github.com/sjl/vitality.vim
MIT License
320 stars 30 forks source link

Need new entries for :terminal mode #46

Open asciibits opened 4 years ago

asciibits commented 4 years ago

I've been using vim's terminal mode a bit lately and noticed it wasn't getting focus events. Adding these lines fixed it:

    tnoremap <silent> <f24> <c-w>:silent doautocmd FocusLost %<cr>
    tnoremap <silent> <f25> <c-w>:silent doautocmd FocusGained %<cr>

Thanks for the plugin, I love it!