-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_vimrc
44 lines (34 loc) · 973 Bytes
/
dot_vimrc
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
40
41
42
43
44
if &compatible
set nocompatible
endif
let mapleader = "\<Space>"
augroup MyAutoCmd
autocmd!
augroup END
if has('nvim')
let s:dein_cache_path = expand('~/.cache/nvim/dein')
else
let s:dein_cache_path = expand('~/.cache/vim/dein')
endif
let s:dein_dir = s:dein_cache_path
\ .'/repos/github.com/Shougo/dein.vim'
if &runtimepath !~ '/dein.vim'
if !isdirectory(s:dein_dir)
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_dir
endif
execute 'set runtimepath+=' . fnamemodify(s:dein_dir, ':p')
endif
if dein#load_state(s:dein_cache_path)
call dein#begin(s:dein_cache_path)
call dein#load_toml('~/.config/nvim/dein.toml', {'lazy' : 0})
call dein#load_toml('~/.config/nvim/deinlazy.toml', {'lazy' : 1})
call dein#end()
call dein#save_state()
endif
if dein#check_install()
call dein#install()
endif
filetype plugin indent on
syntax enable
source ~/.config/nvim/options.rc.vim
source ~/.config/nvim/keymap.rc.vim