From: Stefan Huber Date: Sat, 21 Mar 2020 15:02:28 +0000 (+0100) Subject: init: Use $TERM instead of &term X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=commitdiff_plain;h=97c8e00b5aa718b629a1eeeec844072e5ec604cc init: Use $TERM instead of &term When vi (e.g., neovim) does not feature terminfo then &term cannot be used. Use $TERM instead to determine whether to load devicons. --- diff --git a/init.vim b/init.vim index be243ee..5d6ca4c 100644 --- 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