Skip to content

Commit

Permalink
Vim: Apply termguicolors for nvim terminals
Browse files Browse the repository at this point in the history
In some nvim environments, &term is set to be 'nvim' instead of
the TERM value inherited from the shell.
  • Loading branch information
wookayin committed Oct 7, 2017
1 parent 2669be4 commit f279ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function s:auto_termguicolors()
return
endif

if &term == 'xterm-256color' && !s:is_mosh()
if (&term == 'xterm-256color' || &term == 'nvim') && !s:is_mosh()
set termguicolors
else
set notermguicolors
Expand Down

0 comments on commit f279ee0

Please sign in to comment.