From 0d9d35b6892704d21b06a23de0db4f9272b89aa6 Mon Sep 17 00:00:00 2001 From: Claus Beckenbauer Date: Mon, 23 Mar 2020 07:50:24 +0100 Subject: [PATCH 01/46] use 1,2 fff for easy airline buffer selection. Added enhanced cpp highlighting --- vimrc/keymap.vim | 16 ++++++++++++++++ vimrc/plugins.vim | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 99d715c..13221c6 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -85,6 +85,22 @@ nnoremap :confirm bdelete " Open tag under cursor in new tab "noremap :tab split:exec("tag ".expand("")) +" ============================================================================= +" Section: Buffer navigation +" ============================================================================= +nnoremap n :bnext +nnoremap p :bprevious + +nmap 1 AirlineSelectTab1 +nmap 2 AirlineSelectTab2 +nmap 3 AirlineSelectTab3 +nmap 4 AirlineSelectTab4 +nmap 5 AirlineSelectTab5 +nmap 6 AirlineSelectTab6 +nmap 7 AirlineSelectTab7 +nmap 8 AirlineSelectTab8 +nmap 9 AirlineSelectTab9 + " ============================================================================= " Section: Window navigation " ============================================================================= diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 274fcca..fe378a5 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -37,6 +37,7 @@ function! PackInit() abort call minpac#add('majutsushi/tagbar') " A code-completion engine for Vim call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) + call minpac#add('octol/vim-cpp-enhanced-highlight') " Cosmetics call minpac#add('vim-scripts/Wombat') call minpac#add('vim-scripts/wombat256.vim') @@ -96,12 +97,20 @@ let g:ycm_complete_in_strings = 0 let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_autoclose_preview_window_after_insertion = 1 +" ============================================================================= +" Section: octol/vim-cpp-enhanced-highlight +" ============================================================================= +let g:cpp_class_scope_highlight = 1 +let g:cpp_member_variable_hightlight = 1 +let g:cpp_class_decl_hightlight = 1 + " ============================================================================= " Section: vim-airline " ============================================================================= let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#buffer_idx_mode = 1 let g:airline_theme='wombat' let g:airline#extensions#tabline#formatter = 'unique_tail' From 56a8aaab539c13d8884c37407aaeb5002e7a289e Mon Sep 17 00:00:00 2001 From: beckenc Date: Mon, 23 Mar 2020 08:36:14 +0100 Subject: [PATCH 02/46] removed non working enhanced highlighting plugin --- vimrc/plugins.vim | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index fe378a5..f7f4250 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -37,7 +37,6 @@ function! PackInit() abort call minpac#add('majutsushi/tagbar') " A code-completion engine for Vim call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) - call minpac#add('octol/vim-cpp-enhanced-highlight') " Cosmetics call minpac#add('vim-scripts/Wombat') call minpac#add('vim-scripts/wombat256.vim') @@ -97,13 +96,6 @@ let g:ycm_complete_in_strings = 0 let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_autoclose_preview_window_after_insertion = 1 -" ============================================================================= -" Section: octol/vim-cpp-enhanced-highlight -" ============================================================================= -let g:cpp_class_scope_highlight = 1 -let g:cpp_member_variable_hightlight = 1 -let g:cpp_class_decl_hightlight = 1 - " ============================================================================= " Section: vim-airline " ============================================================================= From 3f8bcfc3e95a877d3257e9e5ed9d325585c24edf Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 24 Mar 2020 07:30:33 +0100 Subject: [PATCH 03/46] Source .virmc after writing --- vimrc/functions.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc/functions.vim b/vimrc/functions.vim index d53741b..5569373 100644 --- a/vimrc/functions.vim +++ b/vimrc/functions.vim @@ -73,5 +73,7 @@ if has("autocmd") \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif + + autocmd! BufWritePost $MYVIMRCPATH/*.vim source ~/.vimrc endif From e69af408d44310634c1bcedaef22803cb109f5d8 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 24 Mar 2020 07:32:12 +0100 Subject: [PATCH 04/46] added c to ease buffer closing. Prevent fzf to open buffers in NERD_tree --- vimrc/keymap.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 13221c6..e2c60e3 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -1,4 +1,4 @@ -" ============================================================================= + " File: keymap.vim " Descritpion: Keymap configuration " ============================================================================= @@ -69,6 +69,7 @@ nmap w :w! " command! W execute 'w !sudo tee % > /dev/null' edit! command W w !sudo tee "%" > /dev/null + " ============================================================================= " Section: Tab navigation " ============================================================================= @@ -80,7 +81,7 @@ nnoremap tt :tabnew nnoremap to :tabonly! nnoremap :tabnew -nnoremap :confirm bdelete +nnoremap :confirm bdelete:tabclosegT " Open tag under cursor in new tab "noremap :tab split:exec("tag ".expand("")) @@ -90,6 +91,7 @@ nnoremap :confirm bdelete " ============================================================================= nnoremap n :bnext nnoremap p :bprevious +nnoremap c :confirm bdelete:tabclosegT nmap 1 AirlineSelectTab1 nmap 2 AirlineSelectTab2 @@ -129,6 +131,8 @@ nnoremap :YcmForceCompileAndDiagnostics " look for files under current directory nnoremap :FZF +" prevent opening FZF search result in NERD Tree +nnoremap (expand('%') =~ 'NERD_tree' ? "\\" : "").":FZF\" " ============================================================================= " Section: Formatting From bd6903ef8714e5ac21a0e20682016d499dea6051 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 24 Mar 2020 08:02:15 +0100 Subject: [PATCH 05/46] use @gambels leader semantic --- vimrc/keymap.vim | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index f70e415..16a73a4 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -82,19 +82,19 @@ nnoremap :confirm bdelete:tabclosegT " ============================================================================= " Section: Buffer navigation " ============================================================================= -nnoremap n :bnext -nnoremap p :bprevious -nnoremap c :confirm bdelete:tabclosegT - -nmap 1 AirlineSelectTab1 -nmap 2 AirlineSelectTab2 -nmap 3 AirlineSelectTab3 -nmap 4 AirlineSelectTab4 -nmap 5 AirlineSelectTab5 -nmap 6 AirlineSelectTab6 -nmap 7 AirlineSelectTab7 -nmap 8 AirlineSelectTab8 -nmap 9 AirlineSelectTab9 +nnoremap n :bnext +nnoremap p :bprevious +nnoremap c :confirm bdelete:tabclosegT + +nmap 1 AirlineSelectTab1 +nmap 2 AirlineSelectTab2 +nmap 3 AirlineSelectTab3 +nmap 4 AirlineSelectTab4 +nmap 5 AirlineSelectTab5 +nmap 6 AirlineSelectTab6 +nmap 7 AirlineSelectTab7 +nmap 8 AirlineSelectTab8 +nmap 9 AirlineSelectTab9 " ============================================================================= " Section: Window navigation From 7c611e2074e31ab0d10afffe062c0eee38e43044 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 24 Mar 2020 08:08:34 +0100 Subject: [PATCH 06/46] Support window command also in INSERT mode --- vimrc/keymap.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 16a73a4..7cdefad 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -102,9 +102,13 @@ nmap 9 AirlineSelectTab9 " Select window with Alt- Up/Down/Let/Right nnoremap :wincmd k +inoremap :wincmd ki nnoremap :wincmd j +inoremap :wincmd ji nnoremap :wincmd h +inoremap :wincmd hi nnoremap :wincmd l +inoremap :wincmd li " Split window with Leader - and | noremap - :split From 9774a71e9daadff3fbde870e5f468b7aeacdd3f6 Mon Sep 17 00:00:00 2001 From: beckenc Date: Sat, 28 Mar 2020 20:36:04 +0100 Subject: [PATCH 07/46] Always show signcolumn --- vimrc/misc.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vimrc/misc.vim b/vimrc/misc.vim index 912f9d4..60dbd0f 100644 --- a/vimrc/misc.vim +++ b/vimrc/misc.vim @@ -134,6 +134,9 @@ set noshowmode " Always show tabline set showtabline=2 +" Always show signcolumn +set signcolumn=yes + " Set utf8 as standard encoding set encoding=utf8 From a6707994d38ebd74ecc5e7c4c86d9988a4085fe2 Mon Sep 17 00:00:00 2001 From: beckenc Date: Sat, 28 Mar 2020 21:07:37 +0100 Subject: [PATCH 08/46] added ,gt (YCM GetType) and ,gd (YCM GetDoc) to the keymap --- vimrc/keymap.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 7cdefad..249894d 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -125,6 +125,8 @@ inoremap nnoremap :YcmCompleter GoTo nnoremap :YcmCompleter GoToReferences nnoremap :YcmForceCompileAndDiagnostics +nnoremap gt :YcmCompleter GetType +nnoremap gd :YcmCompleter GetDoc " Look for files under current directory nnoremap :FZF From 8fc027fe80d6b6194770fd4e6d691b1ba1d864d0 Mon Sep 17 00:00:00 2001 From: beckenc Date: Sat, 28 Mar 2020 21:08:57 +0100 Subject: [PATCH 09/46] adjust YCM settings. Complete in strings to get suggestions in include paths --- vimrc/plugins.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index cc459aa..b8e4712 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -92,7 +92,9 @@ let g:syntastic_check_on_wq = 0 " Section: ycm-core/YouCompleteMe " ============================================================================= let g:ycm_complete_in_comments = 0 -let g:ycm_complete_in_strings = 0 +let g:ycm_complete_in_strings = 1 +let g:ycm_max_num_candidates = 10 +let g:ycm_max_num_identifiers_candidates = 10 let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_autoclose_preview_window_after_insertion = 1 From f38bffe3ce79b4fddd1e1408c32ebdaabcb844de Mon Sep 17 00:00:00 2001 From: beckenc Date: Sat, 28 Mar 2020 22:07:51 +0100 Subject: [PATCH 10/46] added clang-format plugin and dmde format style setting --- vimrc/plugins.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index b8e4712..18d3658 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -37,6 +37,8 @@ function! PackInit() abort call minpac#add('majutsushi/tagbar') " A code-completion engine for Vim call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) + " Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf. + call minpac#add('rhysd/vim-clang-format') " Cosmetics call minpac#add('vim-scripts/Wombat') call minpac#add('vim-scripts/wombat256.vim') @@ -98,6 +100,18 @@ let g:ycm_max_num_identifiers_candidates = 10 let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_autoclose_preview_window_after_insertion = 1 +" ============================================================================= +" Section: rhysd/vim-clang-format +" ============================================================================= +let g:clang_format#code_style = "llvm" +let g:clang_format#style_options = { + \ "BreakBeforeBraces" : "Allman", + \ "IndentWidth" : 2, + \ "UseTab" : "Never", + \ "ColumnLimit" : 120, + \ "CompactNamespaces" : "true", + \ "BreakConstructorInitializers" : "BeforeComma" } + " ============================================================================= " Section: vim-airline " ============================================================================= From e975c00117ca6ca7b343b4d1463020b078655cf9 Mon Sep 17 00:00:00 2001 From: beckenc Date: Sun, 29 Mar 2020 14:12:23 +0200 Subject: [PATCH 11/46] adjust formatting settings. Autodetect .clang-format / _clang-format --- vimrc/plugins.vim | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 18d3658..78ff432 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -103,14 +103,26 @@ let g:ycm_autoclose_preview_window_after_insertion = 1 " ============================================================================= " Section: rhysd/vim-clang-format " ============================================================================= -let g:clang_format#code_style = "llvm" +" automatically detect .clang-format / _clang-format in project's root +let g:clang_format#detect_style_file = 1 +" automatically format buffer on save +let g:clang_format#quto_format = 1 +" If autodetect of .clang-format / _clang-romat failes, use that settings +let g:clang_format#code_style = "microsoft" let g:clang_format#style_options = { - \ "BreakBeforeBraces" : "Allman", - \ "IndentWidth" : 2, - \ "UseTab" : "Never", - \ "ColumnLimit" : 120, + \ "AllowShortBlocksOnASingleLine" : "true", + \ "AllowShortCaseLabelsOnASingleLine" : "true", + \ "BraceWrapping" : { + \ "AfterCaseLabel" : "true", + \ "AfterUnion" : "true" }, + \ "BreakInheritanceList" : "BeforeComma", + \ "BreakConstructorInitializers" : "BeforeComma", \ "CompactNamespaces" : "true", - \ "BreakConstructorInitializers" : "BeforeComma" } + \ "ConstructorInitializerIndentWidth" : 2, + \ "ContinuationIndentWidth" : 2, + \ "IndentCaseLabels" : "true", + \ "IndentWidth" : 2, + \ "TabWidth" : 2 } " ============================================================================= " Section: vim-airline From 1c45555489428ba31e29fe50f3e12542ef44c712 Mon Sep 17 00:00:00 2001 From: beckenc Date: Sun, 29 Mar 2020 14:15:53 +0200 Subject: [PATCH 12/46] fixed typo --- vimrc/plugins.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 78ff432..630c2d9 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -106,7 +106,7 @@ let g:ycm_autoclose_preview_window_after_insertion = 1 " automatically detect .clang-format / _clang-format in project's root let g:clang_format#detect_style_file = 1 " automatically format buffer on save -let g:clang_format#quto_format = 1 +let g:clang_format#auto_format = 1 " If autodetect of .clang-format / _clang-romat failes, use that settings let g:clang_format#code_style = "microsoft" let g:clang_format#style_options = { From e565f8c05e2f468ba5dcd8b55c02e336ca6f87dc Mon Sep 17 00:00:00 2001 From: beckenc Date: Sun, 29 Mar 2020 19:44:43 +0200 Subject: [PATCH 13/46] allow short functions to be in a single line --- vimrc/plugins.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 630c2d9..1e07916 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -112,15 +112,17 @@ let g:clang_format#code_style = "microsoft" let g:clang_format#style_options = { \ "AllowShortBlocksOnASingleLine" : "true", \ "AllowShortCaseLabelsOnASingleLine" : "true", + \ "AllowShortFunctionsOnASingleLine" : "true", \ "BraceWrapping" : { \ "AfterCaseLabel" : "true", \ "AfterUnion" : "true" }, \ "BreakInheritanceList" : "BeforeComma", \ "BreakConstructorInitializers" : "BeforeComma", \ "CompactNamespaces" : "true", + \ "IndentCaseLabels" : "true", + \ "NamespaceIndentation" : "All", \ "ConstructorInitializerIndentWidth" : 2, \ "ContinuationIndentWidth" : 2, - \ "IndentCaseLabels" : "true", \ "IndentWidth" : 2, \ "TabWidth" : 2 } From e86ecb312de1a7debfc5cb2bed5ea7e9c3fe8dcf Mon Sep 17 00:00:00 2001 From: beckenc Date: Sun, 29 Mar 2020 21:54:43 +0200 Subject: [PATCH 14/46] Do not split empty Functions, Records and Namespaces --- vimrc/plugins.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 1e07916..b9f7352 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -116,8 +116,12 @@ let g:clang_format#style_options = { \ "BraceWrapping" : { \ "AfterCaseLabel" : "true", \ "AfterUnion" : "true" }, + \ "PointerAlignment" : "Left", \ "BreakInheritanceList" : "BeforeComma", \ "BreakConstructorInitializers" : "BeforeComma", + \ "SplitEmptyFunction" : "false", + \ "SplitEmptyRecord" : "false", + \ "SplitEmptyNamespace" : "false", \ "CompactNamespaces" : "true", \ "IndentCaseLabels" : "true", \ "NamespaceIndentation" : "All", From 26ccdeef42574ffaa906cafba1b628fbad7131a8 Mon Sep 17 00:00:00 2001 From: cbe Date: Fri, 3 Apr 2020 14:55:13 +0200 Subject: [PATCH 15/46] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 920cfd7..0196b3e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## Install vim-ide ```bash -git clone --recurse-submodules https://github.com/nuccleon/vim-ide.git +git clone --recurse-submodules https://github.com/beckenc/vim-ide.git ``` ### .. for current user From fa1daa239bc589c4af94f8ab22c60ea76537db9a Mon Sep 17 00:00:00 2001 From: beckenc Date: Mon, 20 Apr 2020 13:04:35 +0200 Subject: [PATCH 16/46] * fixed isdirectory call that didn't work * don't spawn a shell for creating directories --- vimrc/misc.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vimrc/misc.vim b/vimrc/misc.vim index 60dbd0f..d3f32ba 100644 --- a/vimrc/misc.vim +++ b/vimrc/misc.vim @@ -74,21 +74,21 @@ set hlsearch " ============================================================================= " Set swap directory -if !isdirectory("~/.vim/swap") - silent !mkdir -p ~/.vim/swap +if !isdirectory($HOME."/.vim/swap") + call mkdir($HOME."/.vim/swap", "p") endif set directory=~/.vim/swap " Set backup directory -if !isdirectory("~/.vim/backup") - silent !mkdir -p ~/.vim/backup +if !isdirectory($HOME."/.vim/backup") + call mkdir($HOME."/.vim/backup", "p") endif set backupdir=~/.vim/backup set backup " Set undo directory -if !isdirectory("~/.vim/undo") - silent !mkdir -p ~/.vim/undo +if !isdirectory($HOME."/.vim/undo") + call mkdir($HOME."/.vim/undo", "p") endif set undodir=~/.vim/undo set undofile From d028fe52818d7943be8d02547d0dced36d822b74 Mon Sep 17 00:00:00 2001 From: beckenc Date: Mon, 20 Apr 2020 13:09:04 +0200 Subject: [PATCH 17/46] set 0700 permissions for directories --- vimrc/misc.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc/misc.vim b/vimrc/misc.vim index d3f32ba..e4c101c 100644 --- a/vimrc/misc.vim +++ b/vimrc/misc.vim @@ -75,20 +75,20 @@ set hlsearch " Set swap directory if !isdirectory($HOME."/.vim/swap") - call mkdir($HOME."/.vim/swap", "p") + call mkdir($HOME."/.vim/swap", "p", 0700) endif set directory=~/.vim/swap " Set backup directory if !isdirectory($HOME."/.vim/backup") - call mkdir($HOME."/.vim/backup", "p") + call mkdir($HOME."/.vim/backup", "p", 0700) endif set backupdir=~/.vim/backup set backup " Set undo directory if !isdirectory($HOME."/.vim/undo") - call mkdir($HOME."/.vim/undo", "p") + call mkdir($HOME."/.vim/undo", "p", 0700) endif set undodir=~/.vim/undo set undofile From efd048dc249c46201ae500d29a3c594affbfa222 Mon Sep 17 00:00:00 2001 From: beckenc Date: Fri, 8 May 2020 22:18:21 +0200 Subject: [PATCH 18/46] check for python support in vim before installing YouCompleteMe --- vimrc/plugins.vim | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index b9f7352..35b5fa2 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -36,8 +36,12 @@ function! PackInit() abort " A class outline viewer for Vim call minpac#add('majutsushi/tagbar') " A code-completion engine for Vim - call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) - " Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf. + if has('python') + call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) + else + echomsg "YouCompleteMe needs vim compiled with python support" + endif + " Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf. call minpac#add('rhysd/vim-clang-format') " Cosmetics call minpac#add('vim-scripts/Wombat') @@ -93,12 +97,12 @@ let g:syntastic_check_on_wq = 0 " ============================================================================= " Section: ycm-core/YouCompleteMe " ============================================================================= -let g:ycm_complete_in_comments = 0 -let g:ycm_complete_in_strings = 1 -let g:ycm_max_num_candidates = 10 -let g:ycm_max_num_identifiers_candidates = 10 -let g:ycm_autoclose_preview_window_after_completion = 1 -let g:ycm_autoclose_preview_window_after_insertion = 1 +" let g:ycm_complete_in_comments = 0 +" let g:ycm_complete_in_strings = 1 +" let g:ycm_max_num_candidates = 10 +" let g:ycm_max_num_identifiers_candidates = 10 +" let g:ycm_autoclose_preview_window_after_completion = 1 +" let g:ycm_autoclose_preview_window_after_insertion = 1 " ============================================================================= " Section: rhysd/vim-clang-format From a2181d84d9164a40e7e3eb18392a85d5cc8b69aa Mon Sep 17 00:00:00 2001 From: beckenc Date: Fri, 8 May 2020 22:22:13 +0200 Subject: [PATCH 19/46] removed accidently commented ycm configuration --- vimrc/plugins.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 35b5fa2..22dae8a 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -97,12 +97,12 @@ let g:syntastic_check_on_wq = 0 " ============================================================================= " Section: ycm-core/YouCompleteMe " ============================================================================= -" let g:ycm_complete_in_comments = 0 -" let g:ycm_complete_in_strings = 1 -" let g:ycm_max_num_candidates = 10 -" let g:ycm_max_num_identifiers_candidates = 10 -" let g:ycm_autoclose_preview_window_after_completion = 1 -" let g:ycm_autoclose_preview_window_after_insertion = 1 +let g:ycm_complete_in_comments = 0 +let g:ycm_complete_in_strings = 1 +let g:ycm_max_num_candidates = 10 +let g:ycm_max_num_identifiers_candidates = 10 +let g:ycm_autoclose_preview_window_after_completion = 1 +let g:ycm_autoclose_preview_window_after_insertion = 1 " ============================================================================= " Section: rhysd/vim-clang-format From df2e0951be797624ed3117fe0d92bd414df90b4b Mon Sep 17 00:00:00 2001 From: beckenc Date: Mon, 11 May 2020 17:59:03 +0200 Subject: [PATCH 20/46] corrected python support check for minpac --- vimrc/plugins.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 22dae8a..33f94f5 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -36,10 +36,10 @@ function! PackInit() abort " A class outline viewer for Vim call minpac#add('majutsushi/tagbar') " A code-completion engine for Vim - if has('python') + if has('python3') call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) else - echomsg "YouCompleteMe needs vim compiled with python support" + " echomsg "YouCompleteMe needs vim compiled with python support" endif " Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf. call minpac#add('rhysd/vim-clang-format') From c860579e063559849571bbf8ad16a084682cb8c9 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 21 Jul 2020 10:31:24 +0200 Subject: [PATCH 21/46] use to stop completion, turn off th indentifier completer (just use the semantic trigger (. or ->), and of course C-)x --- vimrc/plugins.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 33f94f5..574ffee 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -97,12 +97,15 @@ let g:syntastic_check_on_wq = 0 " ============================================================================= " Section: ycm-core/YouCompleteMe " ============================================================================= -let g:ycm_complete_in_comments = 0 +let g:ycm_complete_in_comments = 1 let g:ycm_complete_in_strings = 1 let g:ycm_max_num_candidates = 10 let g:ycm_max_num_identifiers_candidates = 10 let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_autoclose_preview_window_after_insertion = 1 +" want to just turn off the identifier completer but keep the semantic trigger (. or ->) active +let g:ycm_min_num_of_chars_for_completion = 99 +let g:ycm_key_list_stop_completion = ['', ''] " ============================================================================= " Section: rhysd/vim-clang-format From 8a91c48777dfda51cd6c05a159c23c7fc253f35f Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 30 Jul 2020 10:16:08 +0200 Subject: [PATCH 22/46] disable arrow keys --- vimrc/keymap.vim | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 249894d..3b8408a 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -11,6 +11,26 @@ let maplocalleader="," noremap ek :split $MYVIMRCPATH/keymap.vim noremap sk :source $MYVIMRCPATH/keymap.vim +" ============================================================================= +" Section: Disable arrow keys for navigation +" ============================================================================= +nnoremap :echo "No left for you!" +vnoremap :echo "No left for you!" +inoremap :echo "No left for you!" + +nnoremap :echo "No right for you!" +vnoremap :echo "No right for you!" +inoremap :echo "No right for you!" + +nnoremap :echo "No up for you!" +vnoremap :echo "No up for you!" +inoremap :echo "No up for you!" + +nnoremap :echo "No down for you!" +vnoremap :echo "No down for you!" +inoremap :echo "No down for you!" + + " ============================================================================= " Section: Toggle views " ============================================================================= @@ -79,13 +99,6 @@ nnoremap :confirm bdelete:tabclosegT " Open tag under cursor in new tab "noremap :tab split:exec("tag ".expand("")) -" ============================================================================= -" Section: Buffer navigation -" ============================================================================= -nnoremap n :bnext -nnoremap p :bprevious -nnoremap c :confirm bdelete:tabclosegT - nmap 1 AirlineSelectTab1 nmap 2 AirlineSelectTab2 nmap 3 AirlineSelectTab3 @@ -96,11 +109,18 @@ nmap 7 AirlineSelectTab7 nmap 8 AirlineSelectTab8 nmap 9 AirlineSelectTab9 +" ============================================================================= +" Section: Buffer navigation +" ============================================================================= +nnoremap n :bnext +nnoremap p :bprevious +nnoremap c :confirm bdelete:tabclosegT + " ============================================================================= " Section: Window navigation " ============================================================================= -" Select window with Alt- Up/Down/Let/Right +" Select window with Alt- Up/Down/Left/Right nnoremap :wincmd k inoremap :wincmd ki nnoremap :wincmd j From 00bd46d721625a924ecfb3869b53bbdfa66fe0b6 Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 30 Jul 2020 10:24:06 +0200 Subject: [PATCH 23/46] use vim the hard way --- vimrc/hard_ass.vim | 13 +++++++++++++ vimrc/keymap.vim | 20 -------------------- 2 files changed, 13 insertions(+), 20 deletions(-) create mode 100644 vimrc/hard_ass.vim diff --git a/vimrc/hard_ass.vim b/vimrc/hard_ass.vim new file mode 100644 index 0000000..b5043a9 --- /dev/null +++ b/vimrc/hard_ass.vim @@ -0,0 +1,13 @@ + +" File: hard_ass.vim +" Descritpion: source this, to use vim the hard way +" ============================================================================= + +" ============================================================================= +" Section: Disable arrow keys for navigation +" ============================================================================= +for key in ['', '', '', ''] + exec 'noremap' key '' + exec 'inoremap' key '' + exec 'cnoremap' key '' +endfor diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 3b8408a..b61dc9b 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -11,26 +11,6 @@ let maplocalleader="," noremap ek :split $MYVIMRCPATH/keymap.vim noremap sk :source $MYVIMRCPATH/keymap.vim -" ============================================================================= -" Section: Disable arrow keys for navigation -" ============================================================================= -nnoremap :echo "No left for you!" -vnoremap :echo "No left for you!" -inoremap :echo "No left for you!" - -nnoremap :echo "No right for you!" -vnoremap :echo "No right for you!" -inoremap :echo "No right for you!" - -nnoremap :echo "No up for you!" -vnoremap :echo "No up for you!" -inoremap :echo "No up for you!" - -nnoremap :echo "No down for you!" -vnoremap :echo "No down for you!" -inoremap :echo "No down for you!" - - " ============================================================================= " Section: Toggle views " ============================================================================= From 7ae861188b4dbc3e9723e7a690daa3e42c452f5b Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 30 Jul 2020 10:29:25 +0200 Subject: [PATCH 24/46] source hard_ass.vim --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 16687ec..b9a2b8e 100755 --- a/install.sh +++ b/install.sh @@ -29,6 +29,7 @@ let \$MYVIMRCPATH = "$DIR/vimrc" let vimrc_misc = 1 let vimrc_keymap = 1 +let vimrc_hard_ass = 1 let vimrc_functions = 1 let vimrc_commands = 1 let vimrc_filetypes = 1 @@ -46,6 +47,10 @@ if 1 == vimrc_keymap so $DIR/vimrc/keymap.vim endif +if 1 == vimrc_hard_ass + so $DIR/vimrc/hard_ass.vim +endif + if 1 == vimrc_functions so $DIR/vimrc/functions.vim endif From b69ea5d13f9b8ae5820bb6ddf9da1f1030ebb6ca Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 16 Sep 2020 07:14:35 +0200 Subject: [PATCH 25/46] added gentoo/gentoo-syntax plugin --- pack/minpac/opt/minpac | 2 +- vimrc/plugins.vim | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index 544f2e6..1ae5180 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit 544f2e642e55a764d144e97e8fb040cebef14948 +Subproject commit 1ae518015b62c7cc4c23e4eccac5ab1b941df5b2 diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 574ffee..571d22a 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -46,6 +46,8 @@ function! PackInit() abort " Cosmetics call minpac#add('vim-scripts/Wombat') call minpac#add('vim-scripts/wombat256.vim') + " Template + call minpac#add('gentoo/gentoo-syntax') else echoerr "minpac is not available" cq From 5800c800c463483eb3bd7c4114e9c1166755d735 Mon Sep 17 00:00:00 2001 From: beckenc Date: Fri, 18 Sep 2020 10:55:04 +0200 Subject: [PATCH 26/46] allow arrows in insert mode --- vimrc/hard_ass.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc/hard_ass.vim b/vimrc/hard_ass.vim index b5043a9..0d5f26c 100644 --- a/vimrc/hard_ass.vim +++ b/vimrc/hard_ass.vim @@ -8,6 +8,6 @@ " ============================================================================= for key in ['', '', '', ''] exec 'noremap' key '' - exec 'inoremap' key '' +" exec 'inoremap' key '' exec 'cnoremap' key '' endfor From bcc5d66b068b4c43eb79e7d9031f43ab1bf0805f Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 08:28:50 +0200 Subject: [PATCH 27/46] updated minpac --- pack/minpac/opt/minpac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index 1ae5180..b7f2f19 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit 1ae518015b62c7cc4c23e4eccac5ab1b941df5b2 +Subproject commit b7f2f198c084390d41046c2cddd3346fdc44c67d From a61e89fa19c14214223f38eb65c6380a94325d6b Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 08:31:41 +0200 Subject: [PATCH 28/46] merge with devel --- pack/minpac/opt/minpac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index b7f2f19..544f2e6 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit b7f2f198c084390d41046c2cddd3346fdc44c67d +Subproject commit 544f2e642e55a764d144e97e8fb040cebef14948 From 01d4d1f233f44c2a6e2d9fae6c14c5187b3327cf Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 10:42:29 +0200 Subject: [PATCH 29/46] catch installation errors if minpack is not installed --- install.sh | 5 ++++- vimrc/plugins.vim | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b9a2b8e..becd1c8 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #!/bin/bash -set -ue +set -u DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" @@ -89,6 +89,9 @@ done echo "Update plugins .." vim -N -u "$DIR"/vimrc/plugins.vim -c "set packpath^=$DIR" -c "PackInstall" +if [ $? -ne 0 ]; then + echo "PackInstall failed. Minpack installed? (see README.md)" +fi echo "Update helptags .." vim -N -u "$DIR"/vimrc/plugins.vim -c "silent! helptags ALL" -c "quit!" diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 571d22a..a617810 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -50,7 +50,7 @@ function! PackInit() abort call minpac#add('gentoo/gentoo-syntax') else echoerr "minpac is not available" - cq + cq 1 endif endfunction From e1a4289ab7ac9fc25a2997e886e124e9ca5c84b2 Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 11:03:15 +0200 Subject: [PATCH 30/46] be more verbosive during installation --- pack/minpac/opt/minpac | 2 +- vimrc/plugins.vim | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index 544f2e6..b7f2f19 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit 544f2e642e55a764d144e97e8fb040cebef14948 +Subproject commit b7f2f198c084390d41046c2cddd3346fdc44c67d diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index a617810..2798f34 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -7,12 +7,12 @@ " Section: Minimal package manager " ============================================================================= -function! PackInit() abort +function! PackInit(verbose_level) abort packadd minpac if exists('*minpac#init') " Initialize minpac - call minpac#init({'verbose': '3'}) + call minpac#init({'verbose': a:verbose_level, 'status_open': 'vertical'}) " Minimal package manager call minpac#add('k-takata/minpac', {'type': 'opt'}) @@ -39,9 +39,9 @@ function! PackInit() abort if has('python3') call minpac#add('ycm-core/YouCompleteMe',{'do': {-> system('./install.py --clangd-completer')}}) else - " echomsg "YouCompleteMe needs vim compiled with python support" + echomsg "YouCompleteMe needs vim compiled with python support" endif - " Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf. + " Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf. call minpac#add('rhysd/vim-clang-format') " Cosmetics call minpac#add('vim-scripts/Wombat') @@ -60,10 +60,10 @@ endfunction " ============================================================================= " Define minpac user commands -command! PackUpdate call PackInit() | call minpac#update('', {'do': 'call minpac#status()'}) -command! PackClean call PackInit() | call minpac#clean() -command! PackStatus call PackInit() | call minpac#status() -command! PackInstall call PackInit() | call minpac#update('', {'do': 'quit'}) +command! PackUpdate call PackInit(3) | call minpac#update('', {'do': 'call minpac#status()'}) +command! PackClean call PackInit(3) | call minpac#clean() +command! PackStatus call PackInit(3) | call minpac#status() +command! PackInstall call PackInit(4) | call minpac#update('', {'do': 'quit'}) " ============================================================================= " Section: scrooloose/nerdtree From 30d803bd93852a01e6c97ee32e1efa79290a1e27 Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 13:46:31 +0200 Subject: [PATCH 31/46] Improved error handling for plugin loading --- vimrc/plugins.vim | 179 +++++++++++++++++++++++----------------------- 1 file changed, 91 insertions(+), 88 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 2798f34..3714af6 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -10,7 +10,12 @@ function! PackInit(verbose_level) abort packadd minpac - if exists('*minpac#init') + if !exists('g:loaded_minpac') + " minpac is not available. + " Settings for plugin-less environment + echoerr "minpac is not available" + cq 1 + else " Initialize minpac call minpac#init({'verbose': a:verbose_level, 'status_open': 'vertical'}) @@ -48,9 +53,91 @@ function! PackInit(verbose_level) abort call minpac#add('vim-scripts/wombat256.vim') " Template call minpac#add('gentoo/gentoo-syntax') - else - echoerr "minpac is not available" - cq 1 + + " ============================================================================= + " Section: scrooloose/nerdtree + " ============================================================================= + + let NERDChristmasTree = 1 + let NERDTreeShowHidden = 0 + + " ============================================================================= + " Section: scrooloose/syntastic + " ============================================================================= + + "set statusline+=%#warningmsg# + "set statusline+=%{SyntasticStatuslineFlag()} + "set statusline+=%* + + "let g:syntastic_always_populate_loc_list = 1 + "let g:syntastic_auto_loc_list = 1 + let g:syntastic_check_on_open =0 + let g:syntastic_check_on_wq = 0 + + " ============================================================================= + " Section: junegunn/fzf + " ============================================================================= + + " ============================================================================= + " Section: majutsushi/tagbar + " ============================================================================= + + " Set autofocus on Tagbar open + "let g:tagbar_autofocus = 1 + + " ============================================================================= + " Section: ycm-core/YouCompleteMe + " ============================================================================= + let g:ycm_complete_in_comments = 1 + let g:ycm_complete_in_strings = 1 + let g:ycm_max_num_candidates = 10 + let g:ycm_max_num_identifiers_candidates = 10 + let g:ycm_autoclose_preview_window_after_completion = 1 + let g:ycm_autoclose_preview_window_after_insertion = 1 + " want to just turn off the identifier completer but keep the semantic trigger (. or ->) active + let g:ycm_min_num_of_chars_for_completion = 99 + let g:ycm_key_list_stop_completion = ['', ''] + + " ============================================================================= + " Section: rhysd/vim-clang-format + " ============================================================================= + " automatically detect .clang-format / _clang-format in project's root + let g:clang_format#detect_style_file = 1 + " automatically format buffer on save + let g:clang_format#auto_format = 1 + " If autodetect of .clang-format / _clang-romat failes, use that settings + let g:clang_format#code_style = "microsoft" + let g:clang_format#style_options = { + \ "AllowShortBlocksOnASingleLine" : "true", + \ "AllowShortCaseLabelsOnASingleLine" : "true", + \ "AllowShortFunctionsOnASingleLine" : "true", + \ "BraceWrapping" : { + \ "AfterCaseLabel" : "true", + \ "AfterUnion" : "true" }, + \ "PointerAlignment" : "Left", + \ "BreakInheritanceList" : "BeforeComma", + \ "BreakConstructorInitializers" : "BeforeComma", + \ "SplitEmptyFunction" : "false", + \ "SplitEmptyRecord" : "false", + \ "SplitEmptyNamespace" : "false", + \ "CompactNamespaces" : "true", + \ "IndentCaseLabels" : "true", + \ "NamespaceIndentation" : "All", + \ "ConstructorInitializerIndentWidth" : 2, + \ "ContinuationIndentWidth" : 2, + \ "IndentWidth" : 2, + \ "TabWidth" : 2 } + + " ============================================================================= + " Section: vim-airline + " ============================================================================= + + let g:airline_powerline_fonts = 1 + let g:airline#extensions#tabline#enabled = 1 + let g:airline#extensions#tabline#buffer_idx_mode = 1 + let g:airline_theme='wombat' + let g:airline#extensions#tabline#formatter = 'unique_tail' + endif endfunction @@ -65,87 +152,3 @@ command! PackClean call PackInit(3) | call minpac#clean() command! PackStatus call PackInit(3) | call minpac#status() command! PackInstall call PackInit(4) | call minpac#update('', {'do': 'quit'}) -" ============================================================================= -" Section: scrooloose/nerdtree -" ============================================================================= - -let NERDChristmasTree = 1 -let NERDTreeShowHidden = 0 - -" ============================================================================= -" Section: scrooloose/syntastic -" ============================================================================= - -"set statusline+=%#warningmsg# -"set statusline+=%{SyntasticStatuslineFlag()} -"set statusline+=%* - -"let g:syntastic_always_populate_loc_list = 1 -"let g:syntastic_auto_loc_list = 1 -let g:syntastic_check_on_open =0 -let g:syntastic_check_on_wq = 0 - -" ============================================================================= -" Section: junegunn/fzf -" ============================================================================= - -" ============================================================================= -" Section: majutsushi/tagbar -" ============================================================================= - -" Set autofocus on Tagbar open -"let g:tagbar_autofocus = 1 - -" ============================================================================= -" Section: ycm-core/YouCompleteMe -" ============================================================================= -let g:ycm_complete_in_comments = 1 -let g:ycm_complete_in_strings = 1 -let g:ycm_max_num_candidates = 10 -let g:ycm_max_num_identifiers_candidates = 10 -let g:ycm_autoclose_preview_window_after_completion = 1 -let g:ycm_autoclose_preview_window_after_insertion = 1 -" want to just turn off the identifier completer but keep the semantic trigger (. or ->) active -let g:ycm_min_num_of_chars_for_completion = 99 -let g:ycm_key_list_stop_completion = ['', ''] - -" ============================================================================= -" Section: rhysd/vim-clang-format -" ============================================================================= -" automatically detect .clang-format / _clang-format in project's root -let g:clang_format#detect_style_file = 1 -" automatically format buffer on save -let g:clang_format#auto_format = 1 -" If autodetect of .clang-format / _clang-romat failes, use that settings -let g:clang_format#code_style = "microsoft" -let g:clang_format#style_options = { - \ "AllowShortBlocksOnASingleLine" : "true", - \ "AllowShortCaseLabelsOnASingleLine" : "true", - \ "AllowShortFunctionsOnASingleLine" : "true", - \ "BraceWrapping" : { - \ "AfterCaseLabel" : "true", - \ "AfterUnion" : "true" }, - \ "PointerAlignment" : "Left", - \ "BreakInheritanceList" : "BeforeComma", - \ "BreakConstructorInitializers" : "BeforeComma", - \ "SplitEmptyFunction" : "false", - \ "SplitEmptyRecord" : "false", - \ "SplitEmptyNamespace" : "false", - \ "CompactNamespaces" : "true", - \ "IndentCaseLabels" : "true", - \ "NamespaceIndentation" : "All", - \ "ConstructorInitializerIndentWidth" : 2, - \ "ContinuationIndentWidth" : 2, - \ "IndentWidth" : 2, - \ "TabWidth" : 2 } - -" ============================================================================= -" Section: vim-airline -" ============================================================================= - -let g:airline_powerline_fonts = 1 -let g:airline#extensions#tabline#enabled = 1 -let g:airline#extensions#tabline#buffer_idx_mode = 1 -let g:airline_theme='wombat' -let g:airline#extensions#tabline#formatter = 'unique_tail' - From e82cb946c619c0b72c3da6c246b3c54c0455e012 Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 18:33:25 +0200 Subject: [PATCH 32/46] fixed plugin options --- vimrc/plugins.vim | 170 +++++++++++++++++++++++----------------------- 1 file changed, 85 insertions(+), 85 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 3714af6..a32910f 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -26,7 +26,7 @@ function! PackInit(verbose_level) abort " Syntax checking hacks for vim. call minpac#add('scrooloose/syntastic') " A command-line fuzzy finder - call minpac#add('junegunn/fzf',{'do': 'call fzf#install()'}) + call minpac#add('junegunn/fzf',{'do': { -> fzf#install()}}) " lean & mean status/tabline for vim that's light as air call minpac#add('vim-airline/vim-airline') call minpac#add('vim-airline/vim-airline-themes') @@ -54,90 +54,6 @@ function! PackInit(verbose_level) abort " Template call minpac#add('gentoo/gentoo-syntax') - " ============================================================================= - " Section: scrooloose/nerdtree - " ============================================================================= - - let NERDChristmasTree = 1 - let NERDTreeShowHidden = 0 - - " ============================================================================= - " Section: scrooloose/syntastic - " ============================================================================= - - "set statusline+=%#warningmsg# - "set statusline+=%{SyntasticStatuslineFlag()} - "set statusline+=%* - - "let g:syntastic_always_populate_loc_list = 1 - "let g:syntastic_auto_loc_list = 1 - let g:syntastic_check_on_open =0 - let g:syntastic_check_on_wq = 0 - - " ============================================================================= - " Section: junegunn/fzf - " ============================================================================= - - " ============================================================================= - " Section: majutsushi/tagbar - " ============================================================================= - - " Set autofocus on Tagbar open - "let g:tagbar_autofocus = 1 - - " ============================================================================= - " Section: ycm-core/YouCompleteMe - " ============================================================================= - let g:ycm_complete_in_comments = 1 - let g:ycm_complete_in_strings = 1 - let g:ycm_max_num_candidates = 10 - let g:ycm_max_num_identifiers_candidates = 10 - let g:ycm_autoclose_preview_window_after_completion = 1 - let g:ycm_autoclose_preview_window_after_insertion = 1 - " want to just turn off the identifier completer but keep the semantic trigger (. or ->) active - let g:ycm_min_num_of_chars_for_completion = 99 - let g:ycm_key_list_stop_completion = ['', ''] - - " ============================================================================= - " Section: rhysd/vim-clang-format - " ============================================================================= - " automatically detect .clang-format / _clang-format in project's root - let g:clang_format#detect_style_file = 1 - " automatically format buffer on save - let g:clang_format#auto_format = 1 - " If autodetect of .clang-format / _clang-romat failes, use that settings - let g:clang_format#code_style = "microsoft" - let g:clang_format#style_options = { - \ "AllowShortBlocksOnASingleLine" : "true", - \ "AllowShortCaseLabelsOnASingleLine" : "true", - \ "AllowShortFunctionsOnASingleLine" : "true", - \ "BraceWrapping" : { - \ "AfterCaseLabel" : "true", - \ "AfterUnion" : "true" }, - \ "PointerAlignment" : "Left", - \ "BreakInheritanceList" : "BeforeComma", - \ "BreakConstructorInitializers" : "BeforeComma", - \ "SplitEmptyFunction" : "false", - \ "SplitEmptyRecord" : "false", - \ "SplitEmptyNamespace" : "false", - \ "CompactNamespaces" : "true", - \ "IndentCaseLabels" : "true", - \ "NamespaceIndentation" : "All", - \ "ConstructorInitializerIndentWidth" : 2, - \ "ContinuationIndentWidth" : 2, - \ "IndentWidth" : 2, - \ "TabWidth" : 2 } - - " ============================================================================= - " Section: vim-airline - " ============================================================================= - - let g:airline_powerline_fonts = 1 - let g:airline#extensions#tabline#enabled = 1 - let g:airline#extensions#tabline#buffer_idx_mode = 1 - let g:airline_theme='wombat' - let g:airline#extensions#tabline#formatter = 'unique_tail' - endif endfunction @@ -152,3 +68,87 @@ command! PackClean call PackInit(3) | call minpac#clean() command! PackStatus call PackInit(3) | call minpac#status() command! PackInstall call PackInit(4) | call minpac#update('', {'do': 'quit'}) +" ============================================================================= +" Section: scrooloose/nerdtree +" ============================================================================= + +let NERDChristmasTree = 1 +let NERDTreeShowHidden = 0 + +" ============================================================================= +" Section: scrooloose/syntastic +" ============================================================================= + +"set statusline+=%#warningmsg# +"set statusline+=%{SyntasticStatuslineFlag()} +"set statusline+=%* + +"let g:syntastic_always_populate_loc_list = 1 +"let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open =0 +let g:syntastic_check_on_wq = 0 + +" ============================================================================= +" Section: junegunn/fzf +" ============================================================================= + +" ============================================================================= +" Section: majutsushi/tagbar +" ============================================================================= + +" Set autofocus on Tagbar open +"let g:tagbar_autofocus = 1 + +" ============================================================================= +" Section: ycm-core/YouCompleteMe +" ============================================================================= +let g:ycm_complete_in_comments = 1 +let g:ycm_complete_in_strings = 1 +let g:ycm_max_num_candidates = 10 +let g:ycm_max_num_identifiers_candidates = 10 +let g:ycm_autoclose_preview_window_after_completion = 1 +let g:ycm_autoclose_preview_window_after_insertion = 1 +" want to just turn off the identifier completer but keep the semantic trigger (. or ->) active +let g:ycm_min_num_of_chars_for_completion = 99 +let g:ycm_key_list_stop_completion = ['', ''] + +" ============================================================================= +" Section: rhysd/vim-clang-format +" ============================================================================= +" automatically detect .clang-format / _clang-format in project's root +let g:clang_format#detect_style_file = 1 +" automatically format buffer on save +let g:clang_format#auto_format = 1 +" If autodetect of .clang-format / _clang-romat failes, use that settings +let g:clang_format#code_style = "microsoft" +let g:clang_format#style_options = { + \ "AllowShortBlocksOnASingleLine" : "true", + \ "AllowShortCaseLabelsOnASingleLine" : "true", + \ "AllowShortFunctionsOnASingleLine" : "true", + \ "BraceWrapping" : { + \ "AfterCaseLabel" : "true", + \ "AfterUnion" : "true" }, + \ "PointerAlignment" : "Left", + \ "BreakInheritanceList" : "BeforeComma", + \ "BreakConstructorInitializers" : "BeforeComma", + \ "SplitEmptyFunction" : "false", + \ "SplitEmptyRecord" : "false", + \ "SplitEmptyNamespace" : "false", + \ "CompactNamespaces" : "true", + \ "IndentCaseLabels" : "true", + \ "NamespaceIndentation" : "All", + \ "ConstructorInitializerIndentWidth" : 2, + \ "ContinuationIndentWidth" : 2, + \ "IndentWidth" : 2, + \ "TabWidth" : 2 } + +" ============================================================================= +" Section: vim-airline +" ============================================================================= + +let g:airline_powerline_fonts = 1 +let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#buffer_idx_mode = 1 +let g:airline_theme='wombat' +let g:airline#extensions#tabline#formatter = 'unique_tail' + From 33cdf4e38c5175a8b07c5196c3699603ddb36a35 Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 7 Oct 2020 19:15:51 +0200 Subject: [PATCH 33/46] fixed return value of the installer in cals of PackInstall fails --- install.sh | 3 ++- vimrc/plugins.vim | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index becd1c8..4f659f4 100755 --- a/install.sh +++ b/install.sh @@ -91,9 +91,10 @@ echo "Update plugins .." vim -N -u "$DIR"/vimrc/plugins.vim -c "set packpath^=$DIR" -c "PackInstall" if [ $? -ne 0 ]; then echo "PackInstall failed. Minpack installed? (see README.md)" + exit 1 fi echo "Update helptags .." -vim -N -u "$DIR"/vimrc/plugins.vim -c "silent! helptags ALL" -c "quit!" +vim -N -u "$DIR"/vimrc/plugins.vim -c "silent! helptags ALL" -c "quitall!" exit 0 diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index a32910f..addf520 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -17,7 +17,7 @@ function! PackInit(verbose_level) abort cq 1 else " Initialize minpac - call minpac#init({'verbose': a:verbose_level, 'status_open': 'vertical'}) + call minpac#init({'verbose': a:verbose_level, 'status_auto': 'TRUE', 'progress_open': 'vertical', 'status_open': 'vertical'}) " Minimal package manager call minpac#add('k-takata/minpac', {'type': 'opt'}) @@ -63,10 +63,10 @@ endfunction " ============================================================================= " Define minpac user commands -command! PackUpdate call PackInit(3) | call minpac#update('', {'do': 'call minpac#status()'}) +command! PackUpdate call PackInit(3) | call minpac#update() command! PackClean call PackInit(3) | call minpac#clean() command! PackStatus call PackInit(3) | call minpac#status() -command! PackInstall call PackInit(4) | call minpac#update('', {'do': 'quit'}) +command! PackInstall call PackInit(4) | call minpac#update('', {'do': 'quitall!'}) " ============================================================================= " Section: scrooloose/nerdtree From 3b6a3cd9db444fb483d940d5a69c427801d1fb39 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 13 Oct 2020 14:31:36 +0200 Subject: [PATCH 34/46] Move SpliX Options into the BraceWrapping Section --- vimrc/plugins.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index addf520..06b6b6f 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -127,13 +127,13 @@ let g:clang_format#style_options = { \ "AllowShortFunctionsOnASingleLine" : "true", \ "BraceWrapping" : { \ "AfterCaseLabel" : "true", + \ "SplitEmptyFunction" : "false", + \ "SplitEmptyRecord" : "false", + \ "SplitEmptyNamespace" : "false", \ "AfterUnion" : "true" }, \ "PointerAlignment" : "Left", \ "BreakInheritanceList" : "BeforeComma", \ "BreakConstructorInitializers" : "BeforeComma", - \ "SplitEmptyFunction" : "false", - \ "SplitEmptyRecord" : "false", - \ "SplitEmptyNamespace" : "false", \ "CompactNamespaces" : "true", \ "IndentCaseLabels" : "true", \ "NamespaceIndentation" : "All", From 0658cc214b39ea1cbf0dd51af96f03632d689ba9 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 13 Oct 2020 14:35:35 +0200 Subject: [PATCH 35/46] Do not delete training whitespaces for all filetypes (.patch need whitespaces) --- vimrc/filetypes.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc/filetypes.vim b/vimrc/filetypes.vim index 6e8dda9..4635216 100644 --- a/vimrc/filetypes.vim +++ b/vimrc/filetypes.vim @@ -7,8 +7,8 @@ augroup filetype_generic autocmd! " Automatically remove all trailing spaces for all file types - autocmd BufWritePre * :call TrimWhiteSpace() - "autocmd BufWritePre *.txt,*.js,*.py,*.wiki,*.sh,*.md,*.cpp,*.h,*.hpp,*.c,*.mk,*.vim :call TrimWhiteSpace() + " autocmd BufWritePre * :call TrimWhiteSpace() + autocmd BufWritePre *.txt,*.js,*.py,*.wiki,*.sh,*.md,*.cpp,*.h,*.hpp,*.c,*.mk,*.vim :call TrimWhiteSpace() " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler From 571ade0424b94929c670a0d2a0d2162e626a707c Mon Sep 17 00:00:00 2001 From: beckenc Date: Wed, 14 Oct 2020 09:14:31 +0200 Subject: [PATCH 36/46] update submodules --- pack/minpac/opt/minpac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index b7f2f19..5bfd4ba 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit b7f2f198c084390d41046c2cddd3346fdc44c67d +Subproject commit 5bfd4ba4585f7783d8305e06df74f2c29c9bb4e2 From b3d5e514dc63c077210980511fea9054bce1750c Mon Sep 17 00:00:00 2001 From: beckenc Date: Mon, 19 Oct 2020 13:13:02 +0200 Subject: [PATCH 37/46] added vim-bitbake plugin --- vimrc/plugins.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 06b6b6f..9c3e004 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -53,6 +53,7 @@ function! PackInit(verbose_level) abort call minpac#add('vim-scripts/wombat256.vim') " Template call minpac#add('gentoo/gentoo-syntax') + call minpac#add('kergoth/vim-bitbake') endif From b0d3e52779b51f37e8e366a2b0b34f94ba8ad383 Mon Sep 17 00:00:00 2001 From: cbe Date: Thu, 14 Jan 2021 15:00:14 +0100 Subject: [PATCH 38/46] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0196b3e..76612c9 100644 --- a/README.md +++ b/README.md @@ -37,4 +37,5 @@ git clone --recurse-submodules https://github.com/beckenc/vim-ide.git * https://devhints.io/vimscript * https://learnvimscriptthehardway.stevelosh.com +* https://docs.microsoft.com/de-de/windows/terminal/tutorials/powerline-setup From 21ecdcaff86c65a3b62cf9c8b6ea2c411b094125 Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 14 Jan 2021 15:01:22 +0100 Subject: [PATCH 39/46] merged master --- pack/minpac/opt/minpac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index 5bfd4ba..b7f2f19 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit 5bfd4ba4585f7783d8305e06df74f2c29c9bb4e2 +Subproject commit b7f2f198c084390d41046c2cddd3346fdc44c67d From 0386392dcb475d9ddc53a7a23363ca5b3fed1e0f Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 14 Jan 2021 15:02:27 +0100 Subject: [PATCH 40/46] merged master --- pack/minpac/opt/minpac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index b7f2f19..5bfd4ba 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit b7f2f198c084390d41046c2cddd3346fdc44c67d +Subproject commit 5bfd4ba4585f7783d8305e06df74f2c29c9bb4e2 From df5c63783abb5b1ad2e823947d72e3cab20157eb Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 14 Jan 2021 15:21:13 +0100 Subject: [PATCH 41/46] workaround for windows terminal to render backround correctly --- vimrc/misc.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc/misc.vim b/vimrc/misc.vim index e4c101c..e0d9e24 100644 --- a/vimrc/misc.vim +++ b/vimrc/misc.vim @@ -153,6 +153,8 @@ else colorscheme wombat endif set background=dark +" WSL workaround, google: VIM backround colors render incorrectly +set t_ut= if has('gui_running') set t_Co=256 From 85f95534e8ca0f56d46fc18ef2fb4d9c48e041cb Mon Sep 17 00:00:00 2001 From: beckenc Date: Thu, 14 Jan 2021 22:51:06 +0100 Subject: [PATCH 42/46] integrate vimtmux --- vimrc/plugins.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index 9c3e004..d173761 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -54,11 +54,16 @@ function! PackInit(verbose_level) abort " Template call minpac#add('gentoo/gentoo-syntax') call minpac#add('kergoth/vim-bitbake') - + call minpac#add('edkolev/tmuxline.vim') endif endfunction +" ============================================================================= +" Section: edkolev/tmuxline.vim +" ============================================================================= +let g:airline#extensions#tmuxline#enabled = 0 + " ============================================================================= " Section: k-takata/minpac " ============================================================================= @@ -92,6 +97,7 @@ let g:syntastic_check_on_wq = 0 " ============================================================================= " Section: junegunn/fzf " ============================================================================= +let g:fzf_layout = { 'down': '30%' } " ============================================================================= " Section: majutsushi/tagbar From 2ca9590a3720243d9953cc4fae0fbbf580ea63d1 Mon Sep 17 00:00:00 2001 From: beckenc Date: Fri, 15 Jan 2021 10:09:23 +0100 Subject: [PATCH 43/46] take fzf from system or ask for download --- vimrc/plugins.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index d173761..ece2679 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -25,8 +25,9 @@ function! PackInit(verbose_level) abort call minpac#add('scrooloose/nerdtree') " Syntax checking hacks for vim. call minpac#add('scrooloose/syntastic') - " A command-line fuzzy finder - call minpac#add('junegunn/fzf',{'do': { -> fzf#install()}}) + " A command-line fuzzy finder (pickup fzf binary available on the system. If it is not found in $PATH, + " it will ask if it should download the latest binary + call minpac#add('junegunn/fzf') " lean & mean status/tabline for vim that's light as air call minpac#add('vim-airline/vim-airline') call minpac#add('vim-airline/vim-airline-themes') @@ -69,7 +70,7 @@ let g:airline#extensions#tmuxline#enabled = 0 " ============================================================================= " Define minpac user commands -command! PackUpdate call PackInit(3) | call minpac#update() +command! PackUpdate call PackInit(4) | call minpac#update() command! PackClean call PackInit(3) | call minpac#clean() command! PackStatus call PackInit(3) | call minpac#status() command! PackInstall call PackInit(4) | call minpac#update('', {'do': 'quitall!'}) From 95b263546418b5e24399a85d3532f037fea07132 Mon Sep 17 00:00:00 2001 From: beckenc Date: Fri, 15 Jan 2021 10:27:29 +0100 Subject: [PATCH 44/46] change fzf command to CTRL-T. Align with bash --- vimrc/keymap.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index b61dc9b..1e2ac99 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -129,9 +129,9 @@ nnoremap gt :YcmCompleter GetType nnoremap gd :YcmCompleter GetDoc " Look for files under current directory -nnoremap :FZF +nnoremap :FZF " prevent opening FZF search result in NERD Tree -nnoremap (expand('%') =~ 'NERD_tree' ? "\\" : "").":FZF\" +nnoremap (expand('%') =~ 'NERD_tree' ? "\\" : "").":FZF\" " ============================================================================= " Section: Formatting From cb5acce2c5372935e90d09646341b43982f98471 Mon Sep 17 00:00:00 2001 From: beckenc Date: Fri, 15 Jan 2021 10:58:50 +0100 Subject: [PATCH 45/46] window navigation with hjkl --- pack/minpac/opt/minpac | 2 +- vimrc/keymap.vim | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pack/minpac/opt/minpac b/pack/minpac/opt/minpac index 5bfd4ba..093f008 160000 --- a/pack/minpac/opt/minpac +++ b/pack/minpac/opt/minpac @@ -1 +1 @@ -Subproject commit 5bfd4ba4585f7783d8305e06df74f2c29c9bb4e2 +Subproject commit 093f00891aeb04e98ceb5a541885d025c9fae169 diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 1e2ac99..0372db6 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -101,14 +101,14 @@ nnoremap c :confirm bdelete:tabclosegT " ============================================================================= " Select window with Alt- Up/Down/Left/Right -nnoremap :wincmd k -inoremap :wincmd ki -nnoremap :wincmd j -inoremap :wincmd ji -nnoremap :wincmd h -inoremap :wincmd hi -nnoremap :wincmd l -inoremap :wincmd li +nnoremap k :wincmd k +inoremap k :wincmd ki +nnoremap j :wincmd j +inoremap j :wincmd ji +nnoremap h :wincmd h +inoremap h :wincmd hi +nnoremap l :wincmd l +inoremap l :wincmd li " Split window with Leader - and | noremap - :split From d8d2aa6647da11366ca3c8a0d953a54bc4479c15 Mon Sep 17 00:00:00 2001 From: beckenc Date: Tue, 7 Jun 2022 11:41:44 +0200 Subject: [PATCH 46/46] load airline only if symbols are there --- vimrc/filetypes.vim | 2 +- vimrc/keymap.vim | 2 +- vimrc/plugins.vim | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/vimrc/filetypes.vim b/vimrc/filetypes.vim index 4635216..e2e6cd7 100644 --- a/vimrc/filetypes.vim +++ b/vimrc/filetypes.vim @@ -36,7 +36,7 @@ augroup END augroup filetype_cpp autocmd! autocmd FileType cpp setlocal shiftwidth=2 tabstop=2 softtabstop=2 - autocmd FileType cpp setlocal filetype=cpp.doxygen + autocmd FileType cpp setlocal filetype=cpp autocmd FileType cpp setlocal spelllang=en augroup END diff --git a/vimrc/keymap.vim b/vimrc/keymap.vim index 0372db6..d115029 100644 --- a/vimrc/keymap.vim +++ b/vimrc/keymap.vim @@ -73,7 +73,7 @@ nnoremap tm :tabm nnoremap tt :tabnew nnoremap to :tabonly! -nnoremap :tabnew +"nnoremap :tabnew nnoremap :confirm bdelete:tabclosegT " Open tag under cursor in new tab diff --git a/vimrc/plugins.vim b/vimrc/plugins.vim index ece2679..6decdaa 100644 --- a/vimrc/plugins.vim +++ b/vimrc/plugins.vim @@ -155,6 +155,11 @@ let g:clang_format#style_options = { " ============================================================================= let g:airline_powerline_fonts = 1 + +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif + let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_idx_mode = 1 let g:airline_theme='wombat'