From a53e4402b81d535dc7af284f79a42553466498ae Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 3 Sep 2022 15:17:22 -0400 Subject: [PATCH] add vim-rooter config to recognize vscode project --- .vimrc.bundles | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index eb9ace8..2457228 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -131,17 +131,24 @@ if g:vim_type == 'nvim' endif endif " } + + " airblade/vim-rooter { + if isdirectory(expand(plugin_dir . "/vim-rooter")) + let g:rooter_patterns = ['.vscode', '.git'] + endif + " } + " godlygeek/tabular { - if isdirectory(expand(plugin_dir . "/tabular")) - nmap t= :Tabularize /= - vmap t= :Tabularize /= + if isdirectory(expand(plugin_dir . "/tabular")) + nmap t= :Tabularize /= + vmap t= :Tabularize /= - nmap t\| :Tab /\| - vmap t\| :Tab /\| + nmap t\| :Tab /\| + vmap t\| :Tab /\| - nmap t: :Tab /:\zs - vmap t: :Tab /:\zs - endif + nmap t: :Tab /:\zs + vmap t: :Tab /:\zs + endif " }