-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac.vimrc
163 lines (148 loc) · 4.42 KB
/
mac.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" personal Pluginlist
Plugin 'tpope/vim-fugitive'
"tabline plugin
Plugin 'mkitt/tabline.vim'
" synstastic - syntax errors
Plugin 'vim-syntastic/syntastic'
Plugin 'vim-vimlparser'
Plugin 'pearofducks/ansible-vim'
" vim-airline-themes via .vim-folder
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" nerdtree from github
Plugin 'preservim/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
"Plugin 'ryanoasis/vim-devicons'
Plugin 'gabrielelana/vim-markdown'
Plugin 'groenewege/vim-less'
Plugin 'benmills/vimux'
" Autopair/complete for brackets,
Plugin 'auto-pairs'
Plugin 'lervag/vimtex'
Plugin 'vim-latex/vim-latex'
Plugin 'chrisbra/csv.vim'
Plugin 'ekalinin/Dockerfile.vim'
"Plugin 'snipMate'
Plugin 'ycm-core/YouCompleteMe'
Plugin 'cespare/vim-toml'
Plugin 'preservim/tagbar'
Plugin 'dpelle/vim-LanguageTool'
Plugin 'ledger/vim-ledger'
"Plugin 'vim-pandoc/vim-pandoc'
"Plugin 'vim-pandoc/vim-pandoc-syntax'
Plugin 'chr4/nginx.vim'
Plugin 'chr4/sslsecure.vim'
Plugin 'juliosueiras/vim-terraform-completion'
" Track the engine.
Plugin 'SirVer/ultisnips'
" Snippets are separated from the engine. Add this if you want them:
Plugin 'honza/vim-snippets'
Plugin 'phenomenes/ansible-snippets'
Plugin 'm-kat/aws-vim'
Plugin 'vimwiki/vimwiki'
Plugin 'WolfgangMehner/bash-support'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tagbar#enabled = 1
let g:airline#extensions#syntastic#enabled =1
" turn powerline fonts on
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
" set statusline for 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
" => Backups ausschalten
set nobackup
" => Zeile und Spalte anzeigen
set ruler
" keine Rechtschreibpruefung
set nospell
" Rechtschreibprüfung in DE
"set spell spelllang=de_de
" su backspace als delete
set backspace=indent,eol,start
" => ~/.exrc nicht benutzen
set noexrc
" => nicht piepsen, wenn man an Textbegrenzungen anstößt o.ä.
set noerrorbells
" => den aktuellen Mode anzeigen
set showmode
" => Zeilennummern anzeigen
set nu
" => Encondig auf UTF-8
set encoding=utf-8
set rtp+=/usr/local/opt/fzf
set lcs+=space:·
syntax on
" Nerdtree
nnoremap <leader>n :NERDTreeFocus<CR>
nnoremap <C-n> :NERDTree<CR>
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" UltarSnipsConfig
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
"filetype plugin on
au BufRead,BufNewFile *.md set filetype=markdown
let g:tagbar_ctags_bin = "/usr/local/bin/ctags"
au BufRead,BufNewFile *.yml set filetype=yaml.ansible
" Tagbar Toggle + settings
nmap <F8> :TagbarToggle<CR>
let g:tagbar_type_ansible = {
\ 'ctagstype' : 'ansible',
\ 'kinds' : [
\ 't:tasks'
\ ],
\ 'sort' : 0
\}
let g:tagbar_type_tf = {
\ 'ctagstype': 'tf',
\ 'kinds': [
\ 'r:Resource',
\ 'R:Resource',
\ 'd:Data',
\ 'D:Data',
\ 'v:Variable',
\ 'V:Variable',
\ 'p:Provider',
\ 'P:Provider',
\ 'm:Module',
\ 'M:Module',
\ 'o:Output',
\ 'O:Output',
\ 'f:TFVar',
\ 'F:TFVar'
\ ]
\ }
let g:vimwiki_list = [{'path': '~/vim-notes/',
\ 'syntax': 'markdown', 'ext': '.md'}]
let g:BASH_AuthorName = 'Anton Mueller'
let g:BASH_Email = '[email protected]'
let g:BASH_Company = 'Company Name'