From a35351a21b1be5b5b791c30d3fae83497825b952 Mon Sep 17 00:00:00 2001 From: weiyang Date: Sat, 11 Mar 2017 18:41:34 +0800 Subject: [PATCH] [tmux] set 'termguicolors' when running nvim Signed-off-by: weiyang --- vimrcs/filetypes.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vimrcs/filetypes.vim b/vimrcs/filetypes.vim index 8c4eb9db..030cd497 100644 --- a/vimrcs/filetypes.vim +++ b/vimrcs/filetypes.vim @@ -63,5 +63,9 @@ au FileType gitcommit call setpos('.', [0, 1, 1, 0]) " => Shell section """""""""""""""""""""""""""""" if exists('$TMUX') - set term=screen-256color + if has('nvim') + set termguicolors + else + set term=screen-256color + endif endif