X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;h=c97a142a3345e793f5af5076ecad34093edecd79;hp=2901f3c5047624382fc5ff1aa6a183d72b0f881a;hb=e07c8490c8729d0fbe4de4d679180f5016cab8dc;hpb=a42868971f6ec42974ebf55641f0a47672d9f583 diff --git a/init.vim b/init.vim index 2901f3c..c97a142 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,18 @@ 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 + " - Breaks some colors in :terminal, e.g., when launching gdb in vim. + set termguicolors + let g:gruvbox_italic = 1 +endif colorscheme gruvbox " let NERDTreeWinPos="right" @@ -296,6 +303,9 @@ let s:normal_mode_mappings = [ \ ['r', '', 'noremap'], \ ] +" termdebug split windows +let g:termdebug_wide=1 + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" runtime keymaps.vim