projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
205d3d7
)
init: Use $TERM instead of &term
author
Stefan Huber <shuber@sthu.org>
Sat, 21 Mar 2020 15:02:28 +0000
(16:02 +0100)
committer
Stefan Huber <shuber@sthu.org>
Sat, 21 Mar 2020 15:02:28 +0000
(16:02 +0100)
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
patch
|
blob
|
history
diff --git
a/init.vim
b/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