From 97c8e00b5aa718b629a1eeeec844072e5ec604cc Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 21 Mar 2020 16:02:28 +0100 Subject: [PATCH] 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. --- init.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2