From a7ec94fd6951e5afe06e46891019917674e5c358 Mon Sep 17 00:00:00 2001 From: wunewww <55101139+wunewww@users.noreply.github.com> Date: Sun, 5 May 2024 00:08:43 +0800 Subject: [PATCH] Add vimrc.d contains configs --- README.md | 2 +- vimrc | 1 + {plugin => vimrc.d}/01-gui.vim | 0 {after/plugin => vimrc.d}/30-Easymotion.vim | 2 +- {after/plugin => vimrc.d}/31-NerdTree.vim | 2 +- plugin/30-ale.vim => vimrc.d/32-ale.vim | 1 + 6 files changed, 5 insertions(+), 3 deletions(-) rename {plugin => vimrc.d}/01-gui.vim (100%) rename {after/plugin => vimrc.d}/30-Easymotion.vim (98%) rename {after/plugin => vimrc.d}/31-NerdTree.vim (80%) rename plugin/30-ale.vim => vimrc.d/32-ale.vim (95%) diff --git a/README.md b/README.md index 907b2cf..205c85a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This is wuniu's vim settings. This file describes wuniu's editing experience. ## Generate Doc After installing / adding a new pack with `doc/` inside. Generate doc tags -using `packloadall | silent! :helptag ALL`, which will regenerate all tags of docs. +using `packloadall | silent! helptags ALL`, which will regenerate all tags of docs. ## Reloading `vimrc` File diff --git a/vimrc b/vimrc index 1d2cd0e..c265da8 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,6 @@ " This is vimrc file, using as the profile of vim. " After modify vimrc, use `:so $MYVIMRC` to reload new profile. +runtime! vimrc.d/*.vim " env variables if has('win32') || has('win64') diff --git a/plugin/01-gui.vim b/vimrc.d/01-gui.vim similarity index 100% rename from plugin/01-gui.vim rename to vimrc.d/01-gui.vim diff --git a/after/plugin/30-Easymotion.vim b/vimrc.d/30-Easymotion.vim similarity index 98% rename from after/plugin/30-Easymotion.vim rename to vimrc.d/30-Easymotion.vim index 307e52d..294b631 100644 --- a/after/plugin/30-Easymotion.vim +++ b/vimrc.d/30-Easymotion.vim @@ -1,6 +1,6 @@ " This is customized file for easymotion package. -packadd vim-easymotion +packadd! vim-easymotion let g:EasyNotion_do_mapping = 0 " Disable default mapping map (easymotion-prefix) diff --git a/after/plugin/31-NerdTree.vim b/vimrc.d/31-NerdTree.vim similarity index 80% rename from after/plugin/31-NerdTree.vim rename to vimrc.d/31-NerdTree.vim index e1c0a29..51491b1 100644 --- a/after/plugin/31-NerdTree.vim +++ b/vimrc.d/31-NerdTree.vim @@ -1,3 +1,3 @@ " This is configurations for NerdTree -packadd nerdtree +packadd! nerdtree nnoremap n :NERDTreeFocus diff --git a/plugin/30-ale.vim b/vimrc.d/32-ale.vim similarity index 95% rename from plugin/30-ale.vim rename to vimrc.d/32-ale.vim index 0be4c96..b9a5e3d 100644 --- a/plugin/30-ale.vim +++ b/vimrc.d/32-ale.vim @@ -3,5 +3,6 @@ " " You should not turn this setting on if you wish to use ALE as a completion " source for other completion plugins, like Deoplete. +packadd! ale let g:ale_completion_enabled = 1 set omnifunc=ale#completion#OmniFunc