aboutsummaryrefslogtreecommitdiff
path: root/files/.vimrc
blob: 8a2781a909c0bab2f9c56ea62f8e0e6948df678b (plain) (blame)
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
" vim: spell foldmethod=marker :

" Setup & Plugins {{{

set nocompatible
call plug#begin()

" Plugins {{{

" Library for other plugins
Plug 'vim-scripts/L9'

" Git inside vim
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter', { 'branch': 'main' }
Plug 'tpope/vim-unimpaired'

" Intelligent date inc/dec
Plug 'tpope/vim-speeddating'
" Heuristically set buffer options
Plug 'tpope/vim-sleuth'
" Readline style insertion
"Plug 'tpope/vim-rsi'
" Show colors in CSS format
Plug 'ap/vim-css-color'
" Load project .vimrc files
"Plug 'https://github.com/MarcWeber/vim-addon-local-vimrc'
" Fuzzy finder
Plug 'ctrlpvim/ctrlp.vim'
" Finder
Plug 'vim-scripts/FuzzyFinder'
" Solarized colorscheme
Plug 'lifepillar/vim-solarized8'
" Zen codding
Plug 'mattn/emmet-vim'
" Code snippets
if has('python3')
  Plug 'SirVer/ultisnips'
endif
" Silversearch plugin
Plug 'mileszs/ack.vim'
" Support dot command for plugins
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
" Files tree plugin
Plug 'scrooloose/nerdtree'
" Commenting text
Plug 'scrooloose/nerdcommenter'
" Automatic closing of quotes, parenthesis, etc...
Plug 'raimondi/delimitmate'
" Syntax check and linting
Plug 'dense-analysis/ale'
" Text alignment commands
Plug 'godlygeek/tabular'
" Pasting in vim
Plug 'ConradIrwin/vim-bracketed-paste'
" File templates
Plug 'aperezdc/vim-template'
" Calculations in Vim
Plug 'arecarn/vim-crunch'
" Vim Tmux Navigator
Plug 'christoomey/vim-tmux-navigator'
Plug 'lervag/vimtex'
" A solid language pack for Vim.
let g:polyglot_disabled = ['latex']
Plug 'sheerun/vim-polyglot'
" Hurl syntax
if executable('hurl')
  Plug 'Orange-OpenSource/hurl', { 'rtp': 'contrib/vim' }
endif
Plug 'terryma/vim-expand-region'
" Maintains a history of previous yanks, changes and deletes
"Plug 'vim-scripts/YankRing.vim'
Plug 'tpope/vim-dadbod'
Plug 'dhruvasagar/vim-table-mode'
Plug 'tpope/vim-eunuch'
Plug 'michaeljsmith/vim-indent-object'
Plug 'terrastruct/d2-vim'
" Transparent editing of GPG encrypted files
Plug 'jamessan/vim-gnupg'

" File types

" Ledger
"Plug 'https://github.com/abobov/vim-ledger'
Plug 'ledger/vim-ledger'

" Jade templates
Plug 'digitaltoad/vim-jade'
" Orgmode
Plug 'jceb/vim-orgmode'
" EditorConfig plugin for Vim
Plug 'editorconfig/editorconfig-vim'
" use CTRL+A/X to create increasing sequence of numbers or letters via visual mode
Plug 'triglav/vim-visual-increment'
" A Vim plugin that manages your tag files
if executable('ctags') || executable('ctags-exuberant') || executable('ctags-universal')
  Plug 'ludovicchabant/vim-gutentags'
endif
" Asynchronous build and test dispatcher
Plug 'tpope/vim-dispatch'
" Run your tests at the speed of thought
Plug 'vim-test/vim-test'
" A Narrow Region Plugin for vim (like Emacs Narrow Region)
Plug 'chrisbra/NrrwRgn'
" Go development plugin for Vim
Plug 'fatih/vim-go'
" View and grep man pages in vim
Plug 'vim-utils/vim-man'

"Plug 'https://github.com/terryma/vim-multiple-cursors'

" }}}
call plug#end()

" }}}
" Options {{{

" Locale {{{

language C
set encoding=utf-8
" Encodings try list
if has("multi_byte")
    set fileencodings=ucs-bom,utf-8,cp1251,koi8-r,cp866
endif
set keymap=russian-jcukenwin
set spelllang=ru,en
set spellfile=~/.vim/spell/dictionary.utf-8.add
augroup spellcheck
  autocmd!

  if filereadable(&spellfile)
    autocmd VimEnter * execute "silent mkspell! " . &spellfile
  endif
augroup END

set spell
set spellcapcheck=
set spelloptions=camel
set iminsert=0
"set imsearch=0

" }}}

set autoread
set visualbell t_vb=
if exists('&belloff')
    set belloff=all
endif
set title
" Скрывать буфер редактировании другого
set hidden
" Отображать текущую команду
set showcmd
" По умолчанию пользоваться :help справкой
set keywordprg=
set omnifunc=syntaxcomplete#Complete
set complete+=kspell

runtime! macros/matchit.vim
set virtualedit+=block
set backspace=indent,eol,start
set diffopt+=vertical
" Показывать столбец с номерами строк
set number
set relativenumber
set nostartofline " many jump commands move the cursor to the first non-blank character of a line
" Сколько строк оставлять при прокрутке с низу и с боку
set scrolljump=4
set scrolloff=4
set sidescrolloff=5
set display+=lastline
" Число столбцов отведенное на фолдинг
" set foldcolumn=3
" Позволить перемещать курсор после начала и конца строки на предыдущую и
" следующую соответственно.
set whichwrap+=<>[]
" Показывать позицию курсора (номер строки, номер позиции в строке)
set ruler
" Всегда показывать строку статуса
set laststatus=2
" Задать формат статусной строки
set statusline=%<%f\ %h%m%r%y%=%k\ fenc=%{&fileencoding}\ enc=%{&encoding}\ %l,%c%V\ %P
" Начальная директория для просмотра файлов также откуда буфер
set browsedir=buffer
" Размер истории команд
set history=1000
" Изменить действие на <Tab> в режиме команд
set wildmenu    " command-line completion shows a list of matches
" Дополнять по <Tab> до максимально схожей строки, по второму <Tab> выбирать из
" вариантов
set wildmode=list:longest,full
" Не перерисовывать экран пока не выполнится макрос
set lazyredraw
" Не создавать swap файл в текущей директории
set directory-=.
" Язык проверки орфографии по умолчанию
set wildignore=*.swp,*.bak,*.pyc,*.class
set pastetoggle=<F3>
set cursorline
set ttyfast
set mouse=a
set shortmess+=Ic
set nrformats-=octal

set autoindent
set smartindent

set splitright
set splitbelow

" Tuneup delays when using escape key
set timeout
set timeoutlen=1000
set ttimeout
set ttimeoutlen=10

" List chars {{{

set list
set listchars=tab:»\ ,trail:·,extends:#,nbsp:·

augroup trailing
    au!
    au InsertEnter * :set listchars-=trail:·
    au InsertLeave * :set listchars+=trail:·
augroup END

" }}}

" Tabs and formatting {{{

set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set shiftround
set expandtab
set wrap
set textwidth=80
set formatoptions=rqnl1j
set cpoptions+=J

set linebreak
set showbreak=set breakindent
if exists('&breakindentopt')
    set breakindentopt=shift:2
endif

" }}}

let mapleader=","
let maplocalleader="\\"

" Color scheme {{{

if &t_Co < 16
    set t_Co=16
endif
if has('termguicolors')
    let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
    let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
    let g:solarized_termcolors=256
    let g:solarized_termtrans=1
    set termguicolors
endif
silent! colorscheme solarized8

" }}}

digraphs ru 8381
digraphs e= 8364

" }}}
" Syntax {{{

" http://www.panozzaj.com/blog/2016/03/21/ignore-urls-and-acroynms-while-spell-checking-vim/
" Disable spell check for URL
syn match UrlNoSpell '\w\+:\/\/\S\+' contains=@NoSpell
" Disable spell check for acronyms
syn match AcronymNoSpell '\<\(\u\|\d\)\{3,}s\?\>' contains=@NoSpell

" }}}
" Backup {{{

set backup
set noswapfile
set undofile

set undodir=$HOME/tmp/vim/undo//
set backupdir=$HOME/tmp/vim/backup//
set directory=$HOME/tmp/vim/swap//

" Make directories
if !isdirectory(expand(&undodir))
    call mkdir(expand(&undodir), "p")
endif
if !isdirectory(expand(&backupdir))
    call mkdir(expand(&backupdir), "p")
endif
if !isdirectory(expand(&directory))
    call mkdir(expand(&directory), "p")
endif

" }}}
" Search {{{

set gdefault
set hlsearch
set ignorecase
set incsearch
set showmatch
set smartcase

nnoremap / /\v
vnoremap / /\v
nnoremap <silent> * :let stay_star_view = winsaveview()<cr>*:call winrestview(stay_star_view)<cr>
noremap <Leader><Space> :silent nohlsearch<CR>

" Visual mode search {{{

function! s:VSetSearch()
    let temp = @@
    norm! gvy
    let @/ = '\V' . substitute(escape(@@, '\'), '\n', '\\n', 'g')
    let @@ = temp
endfunction

vnoremap * :<C-u>call <SID>VSetSearch()<CR>//<CR><C-o>
vnoremap # :<C-u>call <SID>VSetSearch()<CR>??<CR><C-o>

" }}}

" }}}
" Autocommands {{{
if has('autocmd')
    " Cursor line only in current window and not insert mode
    au WinEnter    * set cursorline
    au WinLeave    * set nocursorline
    au InsertEnter * set nocursorline
    au InsertLeave * set cursorline

    " TODO перенести в ftplugin
    au FileType tex setlocal spell textwidth=79
    au FileType java setlocal omnifunc=javacomplete#Complete
    au FileType python set expandtab
    au FileType html,xml,ant set nolist

    " Restore cursor position
    au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe 'normal g`"zvzz' | endif

    au BufRead,BufNewFile /etc/nginx/* if &ft == "" | setfiletype nginx | endif
    au BufEnter * if &filetype == "" | setlocal ft=text | endif
    au BufReadPost *.ledger norm G

    au BufRead,BufNewFile *.geojson if &ft == "" | setfiletype json | endif

    " Set scripts to be executable from shell
    au BufWritePost * if getline(1) =~ "^#!.*/bin/" | silent exec "!chmod +x <afile>" | endif
endif
" }}}
" Mappings {{{
" Vim rocks!
nnoremap ; :
inoremap kk <ESC>
nnoremap <Tab> %
vnoremap <Tab> %
nnoremap H ^
nnoremap L g_
inoremap <Leader>l <C-^>

nnoremap J mzJ`z

nnoremap <Leader>n :setlocal number!<cr>
nnoremap <Leader>s :setlocal spell!<cr>
nnoremap <Leader>w :setlocal wrap!<cr>
nnoremap <Leader>l :setlocal list!<cr>

nnoremap <Leader>p :silent! set paste<CR>"*p:set nopaste<CR>
vnoremap <Leader>y "*y

" Disable keys {{{

inoremap <F1> <Nop>
nnoremap <F1> <Nop>
vnoremap <F1> <Nop>
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
nnoremap Q @q

" }}}

nnoremap <Space> za
vnoremap <Space> za

nnoremap <Leader>d "_d
vnoremap <Leader>d "_d

" Увеличить шаг прокрутки буфера
nnoremap <C-e> 3<C-e>
nnoremap <C-y> 3<C-y>
" Передвигаться держа курсор в центре по вертикале
"map j jzz
"map k kzz
" Двигать блоки
vnoremap < <gv
vnoremap > >gv
nnoremap <Leader>V V`]

" Wrapped lines navigation {{{

nnoremap j gj
nnoremap k gk

nnoremap g$ $
nnoremap $ g$
nnoremap g0 0
nnoremap 0 g0
nnoremap g^ ^
nnoremap ^ g^
vnoremap g$ $
vnoremap $ g$
vnoremap g0 0
vnoremap 0 g0
vnoremap g^ ^
vnoremap ^ g^

" }}}

" Speedup moving over windows
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l

" Open current buffer in new tab
noremap <C-w><CR> :tab sp<CR>

" Write file with sudo
cmap w!! w !sudo tee % >/dev/null
map gf :e <cfile><CR>

inoremap <C-u> <C-g>u<C-u>
inoremap <C-w> <C-g>u<C-w>

inoremap <C-f> <C-x><C-f>
inoremap <C-l> <C-x><C-l>

nnoremap <C-n> :cnext<CR>z.
nnoremap <C-p> :cprevious<CR>z.

" {{{ Diff mode mappings
if &diff
    map ] ]c
    map [ [c
endif
" }}}

" Quick editing {{{

nnoremap <Leader>ev :edit $MYVIMRC<CR>
nnoremap <Leader>sv :source $MYVIMRC<CR>

" }}}

" }}}
" Commands {{{
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
            \ | diffthis | wincmd p | diffthis
if executable('jq')
    command -range Jq <line1>,<line2>!jq --indent 4 .
endif
if executable('xmlstarlet')
    command -range Format <line1>,<line2>!xmlstarlet format
endif

command Jira %!pandoc --to=jira
" }}}
" Filetype {{{
" XML {{{

augroup ft_xml
    au!
    au FileType xml nnoremap <buffer> <localleader>z Vatzf
    au FileType xml vnoremap <buffer> <localleader>z zf
augroup END

" }}}
" Javascript {{{

augroup ft_javascript
    au!

    au FileType javascript setlocal foldmethod=marker foldmarker={,}
augroup END

" }}}
" JSON {{{

augroup ft_json
    au!

    if exists(':Jq')
        au FileType json noremap <Leader>jq :%Jq<CR>
        au FileType json vnoremap <Leader>jq :%Jq<CR>
    endif

augroup END

" }}}
" Liquibase SQL {{{
augroup ft_liquibase_sql
    au!

    au BufRead *.sql if getline(1) =~ 'liquibase' | setlocal filetype=sql.liquibase | endif
    au FileType sql.liquibase set foldmethod=expr foldexpr=(getline(v:lnum)=~'^--\\schangeset\\s')?1:2 foldlevel=1
augroup END

" }}}
" Org {{{
augroup ft_org
    au!
    au FileType org setlocal spell nolist tabstop=2 shiftwidth=2
augroup END
" }}}
" QuickFix {{{
augroup ft_qf
    au!
    au FileType qf set nowrap
augroup END
" }}}
" Markdown {{{
augroup ft_markdown
    au!
    au FileType markdown setlocal textwidth=0
augroup END
" }}}
" Direnv {{{
augroup ft_direnv
    au!
    au FileType direnv setlocal filetype=direnv.sh
augroup END
" }}}
" }}}
" Plugins {{{
" Surround {{{

" Surrounds double angle quotes «»
let g:surround_171="« \r »"
let g:surround_187="«\r»"

" }}}
" Syntastic {{{
"let g:syntastic_check_on_open = 0
"let g:syntastic_check_on_wq = 0
"let g:syntastic_auto_jump = 0
"let g:syntastic_java_checker = 'javac'
let g:syntastic_mode_map = {
            \ 'mode': 'passive',
            \ 'active_filetypes': [],
            \ 'passive_filetypes': ['java']
            \ }

nnoremap <Leader>C :SyntasticCheck<CR>

" }}}
" Taglist {{{

nnoremap <silent> <F8> :Tlist<CR>

" }}}
" Fuzzy Finder {{{

nnoremap '. :FufFileWithCurrentBufferDir<CR>
nnoremap 'f :FufFile<CR>
nnoremap 'h :FufFile $HOME/<CR>
nnoremap 'k :FufBuffer<CR>

" }}}
" NERD Tree {{{

noremap <F2> :NERDTreeToggle<CR>
noremap <F2> <Esc>:NERDTreeToggle<CR>

let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
let NERDChristmasTree = 1
let NERDTreeChDirMode = 2
let NERDTreeAutoDeleteBuffer=1

let NERDTreeIgnore = [ '\.pyc$' ]

" }}}
" NERD Commenter {{{

let NERDSpaceDelims=1
let g:NERDCustomDelimiters = { 'hurl': { 'left': '#' } }


" }}}
" Scratch {{{

function! ScratchToggle()
    if exists("w:is_scratch_window")
        unlet w:is_scratch_window
        exec "q"
    else
        exec "norm! :Sscratch\<cr>\<c-w>l"
        let w:is_scratch_window = 1
    endif
endfunction
command! ScratchToggle call ScratchToggle()

nnoremap <silent> <Leader><Tab> :ScratchToggle<cr>

" }}}
" Tabular {{{

function! TabularizeUnderCursos()
    let ch = getline(".")[col(".") - 1]
    call Tabularize('/\V' . ch)
endfunction
nnoremap <silent> <Leader>T :call TabularizeUnderCursos()<cr>

" }}}
" Emmet {{{

let g:user_emmet_expandabbr_key = '<C-e>'

" }}}
" delimitMate {{{

let delimitMate_expand_cr = 1
au FileType html let b:delimitMate_matchpairs="(:),[:],{:}"

" }}}
" Template {{{

let g:templates_directory=$HOME . "/.vim/templates"

" }}}
" Ctrl-P {{{

let g:ctrlp_map = "'p"
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_user_caching = 0
let g:ctrlp_root_markers = ['.envrc']

" }}}
" Ledger {{{

augroup ft_ledger
    au!
    au FileType ledger setlocal textwidth=200
    au FileType ledger setlocal foldmethod=marker foldmarker={,}
    au FileType leader let g:crunch_result_type_append = 0
    au FileType ledger inoremap <silent><buffer> <Leader>e <Esc>:call ledger#entry()<CR>
    au FileType ledger noremap <silent><buffer> <Leader>x <Esc>:call ledger#transaction_state_toggle(line('.'), '* ')<CR>
    au FileType ledger noremap = :LedgerAlign<CR>
    au FileType ledger noremap <Leader>e :call ledger#entry()<CR>
    au FileType ledger compiler ledger
    au BufWritePost *.ledger silent! make | redraw! | cwindow
    au FileType ledger command! Ltoday :Ledger register --period today
    au FileType ledger command! Lweek :Ledger register --period 'last week'
augroup END

let g:ledger_main = '~/Dropbox/ledger/journal.ledger'
let g:ledger_date_format = '%Y-%m-%d'
let g:ledger_align_at = 80
let g:ledger_descriptions_cmd = 'cat ~/.ledger-descriptions'
let g:ledger_accounts_cmd = 'cat ~/.ledger-accounts'

" }}}
" vimtex {{{

let g:tex_flavor = 'latex'

" }}}
" polyglot {{{


" }}}
" YankRing {{{

let g:yankring_replace_n_pkey = '<C-k>'
let g:yankring_replace_n_nkey = '<C-j>'
let g:yankring_history_dir = "$HOME/tmp/vim/"

" }}}
" Ack {{{

if executable('ag')
    let g:ackprg = 'ag --vimgrep'
    cnoreabbrev ag Ack
    cnoreabbrev aG Ack
    cnoreabbrev Ag Ack
    cnoreabbrev AG Ack
endif

" }}}
" ALE {{{

augroup plugin_ale
    autocmd!
    au FileType java,python set omnifunc=ale#completion#OmniFunc
augroup END

let g:ale_set_quickfix = 1

" don't spam the virtual text ('disable' to disable)
let ale_virtualtext_cursor = 'current'

let g:ale_fix_on_save = 1
let g:ale_fixers = {}
let g:ale_fixers['*'] = ['remove_trailing_lines', 'trim_whitespace']
let g:ale_fixers.json = ['jq']
let g:ale_fixers.jsonnet = ['jsonnetfmt']
let g:ale_fixers.python = ['black', 'ruff', 'ruff_format']
let g:ale_fixers.sh = ['shfmt']
let g:ale_fixers.sql = ['sqlfluff']
let g:ale_fixers.lua = ['stylua']
let g:ale_sign_error = 'x'
let g:ale_sign_warning = '!'
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
let g:ale_java_javac_options = '-encoding utf-8'

nmap <silent><leader>ad <Plug>(ale_detail)
nmap <silent><leader>aj <Plug>(ale_next_wrap)
nmap <silent><leader>ak <Plug>(ale_previous_wrap)

" Disable all fixers for current filetype
command ALEFixDisable let g:ale_fixers[&filetype] = {}

" }}}
" Editorconfig {{{

let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']

" }}}
" dadbod {{{

let g:local = 'postgres://postgres@localhost'

" }}}
" gutentags {{{

let g:gutentags_ctags_tagfile = '.tags'
execute 'set tags+=' . g:gutentags_ctags_tagfile

" }}}
" vim-man {{{

augroup plugin_vim_man
    autocmd!
    au FileType man set nospell
augroup END

" }}}
" }}}
" Load custom local config {{{

let s:local_vimrc=$MYVIMRC . ".local"
if filereadable(s:local_vimrc)
    silent! execute ':source ' . s:local_vimrc
endif

" }}}