Add vimrc.d contains configs

This commit is contained in:
wunewww 2024-05-05 00:08:43 +08:00
parent 4fd081a410
commit a7ec94fd69
6 changed files with 5 additions and 3 deletions

View File

@ -12,7 +12,7 @@ This is wuniu's vim settings. This file describes wuniu's editing experience.
## Generate Doc ## Generate Doc
After installing / adding a new pack with `doc/` inside. Generate doc tags 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 ## Reloading `vimrc` File

1
vimrc
View File

@ -1,5 +1,6 @@
" This is vimrc file, using as the profile of vim. " This is vimrc file, using as the profile of vim.
" After modify vimrc, use `:so $MYVIMRC` to reload new profile. " After modify vimrc, use `:so $MYVIMRC` to reload new profile.
runtime! vimrc.d/*.vim
" env variables " env variables
if has('win32') || has('win64') if has('win32') || has('win64')

View File

@ -1,6 +1,6 @@
" This is customized file for easymotion package. " This is customized file for easymotion package.
packadd vim-easymotion packadd! vim-easymotion
let g:EasyNotion_do_mapping = 0 " Disable default mapping let g:EasyNotion_do_mapping = 0 " Disable default mapping
map <Leader> <Plug>(easymotion-prefix) map <Leader> <Plug>(easymotion-prefix)

View File

@ -1,3 +1,3 @@
" This is configurations for NerdTree " This is configurations for NerdTree
packadd nerdtree packadd! nerdtree
nnoremap <leader>n :NERDTreeFocus<CR> nnoremap <leader>n :NERDTreeFocus<CR>

View File

@ -3,5 +3,6 @@
" "
" You should not turn this setting on if you wish to use ALE as a completion " You should not turn this setting on if you wish to use ALE as a completion
" source for other completion plugins, like Deoplete. " source for other completion plugins, like Deoplete.
packadd! ale
let g:ale_completion_enabled = 1 let g:ale_completion_enabled = 1
set omnifunc=ale#completion#OmniFunc set omnifunc=ale#completion#OmniFunc