autoload vim script from project's .vim directory
create directory .vim/
, write code on .vim/autoload.vim
.
example:
set tabstop=2
echomsg 'config loaded'
If you only want to load once, create .vim/config.json
file:
{"only_load_once":1}
You can change .vim
,autoload.vim
,config.json
to another name.
default config:
let g:dotvim_dir = '.vim'
let g:dotvim_autoload_file = 'autoload.vim'
let g:dotvim_config_file = 'config.json'
let g:dotvim_autoload_on_dir_changed = 1
let g:dotvim_autoload_on_buf_enter = 1