X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;h=80b80ee612d7c43541ade42879e4ce35f7e35cef;hp=9817a3d79d61357cfc2d59a30af46c7bc6981c29;hb=af9e63ed9f1c7ebc2d5d334a4413a8d7624a270e;hpb=b0639c8596bdfcb4d30c4ebc846f0bac55af62fb diff --git a/init.vim b/init.vim index 9817a3d..80b80ee 100644 --- a/init.vim +++ b/init.vim @@ -6,9 +6,6 @@ " Some global settings set nocompatible -" Breaks colors for some versions of mosh, but not if tmux is used on top of -" mosh. See https://github.com/mobile-shell/mosh/issues/928 -set termguicolors set number set cursorline set scrolloff=5 @@ -94,8 +91,17 @@ let g:airline#extensions#branch#enabled=1 let g:gruvbox_contrast_light='hard' let g:gruvbox_contrast_dark='hard' -let g:gruvbox_italic = 1 set bg=dark + +if &term =~ 'linux' + let g:gruvbox_termcolors=16 +else + " Setting termguicolors has two implications: + " - Breaks colors for some versions of mosh, but not if tmux is used on top of + " mosh. See https://github.com/mobile-shell/mosh/issues/928 + set termguicolors + let g:gruvbox_italic = 1 +endif colorscheme gruvbox " let NERDTreeWinPos="right" @@ -297,7 +303,8 @@ let s:normal_mode_mappings = [ \ ] " termdebug split windows -let g:termdebug_wide=1 +let g:termdebug_wide = 1 +let termdebugger = $HOME . '/.vim/gdb.sh' """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""