-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
64 lines (50 loc) · 2.14 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
""" Source the stuff
if empty($MYVIMRC) | let $MYVIMRC = expand('<sfile>:p') | endif
" Environment setup:
source $XDG_CONFIG_HOME/vim/vimenv.vim
" let g:use_alt = '1'
if exists('g:use_alt')
source $XDG_CONFIG_HOME/vim/alt.vim
echom "finishing"
finish
endif
" General Settings:
" set nocompatible " done already in /etc/vimrc
source $XDG_CONFIG_HOME/vim/conf.d/general.vim
if exists('g:started_by_firenvim')
source $XDG_CONFIG_HOME/vim/conf.d/firenvim.vim
endif
source $XDG_CONFIG_HOME/vim/functions.d/customFuncs.vim
" Plugins:
source $XDG_CONFIG_HOME/vim/plugins.vim
source $XDG_CONFIG_HOME/vim/plugsettings.vim
source $XDG_CONFIG_HOME/vim/functions.d/plugfuncs.vim
source $XDG_CONFIG_HOME/vim/functions.d/autocompleteFixes.vim
" Keys:
source $XDG_CONFIG_HOME/vim/keys.d/keys.vim
" Apperance:
source $XDG_CONFIG_HOME/vim/appearance.d/appearance.vim
source $XDG_CONFIG_HOME/vim/appearance.d/line.vim
" These may be something strange if initialised by some other program (-u setting)
if has ('autocmd') " Remain compatible with earlier versions
augroup vimrc " Source vim configuration upon save
autocmd! BufWritePost $MYVIMRC source % | echom "Reloaded " . $MYVIMRC | redraw
autocmd! BufWritePost $MYGVIMRC if has('gui_running') | so % | echom "Reloaded " . $MYGVIMRC | endif | redraw
augroup END
endif " has autocmd
map <leader>vimrc :tabe $MYVIMRC<cr>
" map <leader>tmux :tabe ~/.tmux.conf<cr>
" map <leader>vimso :so $MYVIMRC<cr>
nmap <leader>zshrc :tabe $ZDOTDIR<cr>
"if has ('autocmd') " Remain compatible with earlier versions
" augroup vimrc " Source vim configuration upon save
" autocmd! BufWritePost $VIMINIT source % | echom "Reloaded " . $MYVIMRC | redraw
" autocmd! BufWritePost $MYGVIMRC if has('gui_running') | so % | echom "Reloaded " . $MYGVIMRC | endif | redraw
" augroup END
"endif " has autocmd
augroup journal
autocmd!
autocmd VimEnter */journal/** 0r /home/ixil/Templates/skeletons/journal.skeleton
autocmd VimEnter */journal/** " set header for the particular journal
autocmd VimEnter */journal/** :call JournalMode()setlocal complete=k/home/ixil/Documents/journal/**/*
augroup end