-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
88 lines (77 loc) · 2.17 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
" Vundle:
" Required:
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Plugin 'gmarik/vundle'
" original repos on github
Plugin 'apeschel/vim-vividchalk'
Plugin 'apeschel/vim-syntax-apache'
Plugin 'thisivan/vim-matchit'
Plugin 'godlygeek/tabular'
Plugin 'scrooloose/nerdtree'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'Shougo/unite.vim'
Plugin 'Quramy/vison'
Plugin 'PProvost/vim-ps1'
Plugin 'jez/vim-superman'
Plugin 'hashivim/vim-terraform'
Plugin 'google/vim-jsonnet'
Plugin 'rodjek/vim-puppet'
Plugin 'tpope/vim-fugitive'
Plugin 'wannesm/wmgraphviz.vim'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'vito-c/jq.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'Glench/Vim-Jinja2-Syntax'
Plugin 'lervag/vimtex'
" vim-scripts repos
Plugin 'Cpp11-Syntax-Support'
Plugin 'nginx.vim'
" non github repos
"
" Required:
filetype plugin indent on
" Usage:
set nocompatible
runtime ftplugin/man.vim
" Indentation:
set shiftwidth=4
set softtabstop=4
set expandtab
set tabstop=8
set backspace=indent,eol,start
set listchars=tab:»·,trail:·
set foldmethod=marker
" Interface:
syntax on
colorscheme vividchalk
set list
set ruler
set hlsearch
" Swap Files:
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
" Macros:
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
" CTags:
set tags+=~/tags/libc_tags
" System Specific Configs:
if filereadable(glob("~/.vimrc.local"))
source ~/.vimrc.local
endif
" Syntastic:
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0