From 45a872a12c86b2c70305f2242cf2b246542b9ee2 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Fri, 26 Nov 2021 14:21:30 +0800 Subject: [PATCH] vim: use vim8 pack for plugins --- .config/vim/pack/packages/start/ale | 1 + .config/vim/pack/packages/start/supertab | 1 + .config/vim/pack/packages/start/vim-editorconfig | 1 + .config/vim/vimrc | 1 + .gitmodules | 9 +++++++++ 5 files changed, 13 insertions(+) create mode 160000 .config/vim/pack/packages/start/ale create mode 160000 .config/vim/pack/packages/start/supertab create mode 160000 .config/vim/pack/packages/start/vim-editorconfig diff --git a/.config/vim/pack/packages/start/ale b/.config/vim/pack/packages/start/ale new file mode 160000 index 0000000..388cf33 --- /dev/null +++ b/.config/vim/pack/packages/start/ale @@ -0,0 +1 @@ +Subproject commit 388cf3374312b05122151bc68691bf09a69ff840 diff --git a/.config/vim/pack/packages/start/supertab b/.config/vim/pack/packages/start/supertab new file mode 160000 index 0000000..3a0d722 --- /dev/null +++ b/.config/vim/pack/packages/start/supertab @@ -0,0 +1 @@ +Subproject commit 3a0d7221efd7c408c1abae20299fd4ffa0a43cbf diff --git a/.config/vim/pack/packages/start/vim-editorconfig b/.config/vim/pack/packages/start/vim-editorconfig new file mode 160000 index 0000000..6b50f57 --- /dev/null +++ b/.config/vim/pack/packages/start/vim-editorconfig @@ -0,0 +1 @@ +Subproject commit 6b50f575752605f7e0a0e99e88be4129b2f99311 diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 57b37cd..4861253 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -17,6 +17,7 @@ set backupdir=$HOME/.cache/vim/backup | call mkdir(&backupdir, 'p', 0700) set directory=$HOME/.cache/vim/swap | call mkdir(&directory, 'p', 0700) set viewdir=$HOME/.cache/vim/view | call mkdir(&viewdir, 'p', 0700) set undodir=$HOME/.cache/vim/undo | call mkdir(&undodir, 'p', 0700) +set packpath=$HOME/.config/vim let g:netrw_home=$HOME."/.cache/vim" let g:ale_set_signs=0 let g:c_parse_compile_commands=1 diff --git a/.gitmodules b/.gitmodules index 9c4ce5d..46ed155 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,12 @@ [submodule ".config/mvi"] path = .config/mvi url = https://github.com/occivink/mpv-image-viewer +[submodule ".config/vim/pack/packages/start/vim-editorconfig"] + path = .config/vim/pack/packages/start/vim-editorconfig + url = https://github.com/sgur/vim-editorconfig +[submodule ".config/vim/pack/packages/start/supertab"] + path = .config/vim/pack/packages/start/supertab + url = https://github.com/ervandew/supertab +[submodule ".config/vim/pack/packages/start/ale"] + path = .config/vim/pack/packages/start/ale + url = https://github.com/dense-analysis/ale -- 2.45.2