-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
36 lines (27 loc) · 801 Bytes
/
init.vim
File metadata and controls
36 lines (27 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
" ====================================================
" Copyright (C) 2023 river All rights reserved.
"
" Author : tower_town
" Email : tower_town@outlook.com
" File Name : init.vim
" Last Modified : 2023-08-06 10:13
" Describe : vim config entry main()
"
" ====================================================
import autoload "./init/index.vim" as Init
import autoload "./plugin/index.vim" as Plug
call Init.Init()
call Plug.Init()
if get(s:, 'loaded', 0) != 0
finish
else
let s:loaded = 1
endif
let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h')
if has('nvim') == 1
exec 'set rtp+=' .. fnameescape(s:home)
else
exec 'set rtp+=~/.vim'
endif
command! -nargs=1 IncScript exec 'so ' .. fnameescape(s:home .. "/<args>")
IncScript init/plug.vim