-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
39 lines (30 loc) · 844 Bytes
/
init.vim
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
37
38
39
vim9script noclear
# init.vim - Initialize config.
# Author: vamirio
# Prevent reload.
if exists('loaded')
finish
endif
var loaded = 1
# Get the directory where this file is located.
var home = fnamemodify(resolve(expand('<sfile>:p')), ':h')
# Define a command to load the file.
command -nargs=1 LoadCoreScript execute 'source ' .. home .. '/core/' .. '<args>'
# Add dir vimcfg to runtimepath.
execute 'set runtimepath+=' .. home
# Add dir ~/.vim or ~/vimfile to runtimepath (sometimes vim will not add it
# automatically for you).
if has('unix')
set runtimepath+=~/.vim
elseif has('win32')
set runtimepath+=~/vimfiles
endif
# Load modules.
# Load basic config.
LoadCoreScript basic.vim
# Load extended config.
LoadCoreScript extended.vim
# Load keymaps.
LoadCoreScript keymaps.vim
# Load plugins config.
LoadCoreScript plugins.vim