Add support for gdb-dashboard
[vimconf.git] / init.vim
index eae73f731b8ce59f9d9c803ddc04b3ee151f3702..d2f90a4d058b5c9e749cb5959b03363fd3e142c3 100644 (file)
--- 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"
@@ -120,7 +127,10 @@ let g:clang_compilation_database = '.'
 let g:python3_host_prog = '/usr/bin/python3'
 " deoplete requires huge startuptime. Delay loading upon first InsertEnter.
 let g:deoplete#enable_at_startup = 0
-let g:deoplete#enable_smart_case = 1
+call deoplete#custom#option({
+                            \ 'smart_case' : v:true,
+                            \ 'auto_refresh_delay' : 100,
+                            \ })
 au InsertEnter * call deoplete#enable()
 
 "augroup pencil
@@ -178,6 +188,8 @@ augroup END
 
 let g:localvimrc_persistent = 1
 
+let g:fastfold_minlines = 0
+
 au FileType markdown call RagtagInit()
 
 let g:detectspelllang_langs = {}
@@ -291,6 +303,10 @@ let s:normal_mode_mappings = [
       \ ['r', '<denite:redraw>', 'noremap'],
       \ ]
 
+" termdebug split windows
+let g:termdebug_wide = 1
+let termdebugger = $HOME . '/.vim/gdb.sh'
+
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 
 runtime keymaps.vim