init: Use $TERM instead of &term
[vimconf.git] / init.vim
index be243ee325fd4b63d8608fc27f3909affae743fd..5d6ca4cdf37ba1ae84d527956d360d0ea8867d26 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -46,7 +46,7 @@ syntax on
 " Some global plugin settings
 
 " Disable devicons on linux terminal
-if !has("terminfo") || &term == 'linux'
+if $TERM == 'linux'
     let g:enable_plugin_devicons=0
 " Enable loading of devicons on all others
 else