terminal: use mode() to detect terminal mode
terminal: use mode() to detect terminal mode

workaround with index(term_list(), bufnr('')) > -1 not needed anymore,
since vim 8.0.936 will correctly return 't' for the mode() function in
the terminal.

tschundler/dotfiles,bling/vim-airline,yzhou61/vim-airline,rchicoli/vim-airline,chrisbra/vim-airline,unphased/vim-airline,tschundler/dotfiles,tschundler/dotfiles