-
Notifications
You must be signed in to change notification settings - Fork 97
/
.vimrc
68 lines (52 loc) · 1.38 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
if $VIM_PLUGINS != 'NO'
if filereadable(expand('~/.vimbundle'))
source ~/.vimbundle
endif
runtime! ftplugin/man.vim
endif
syntax on
filetype plugin indent on
set ignorecase
set smartcase
set number
set visualbell
set wildmenu
set wildmode=list:longest,full
set splitright
set splitbelow
set hidden
set guifont=Monaco:h16
set guioptions-=T guioptions-=e guioptions-=L guioptions-=r
set shell=bash
set conceallevel=0
let g:vim_json_syntax_conceal = 0
augroup vimrc
autocmd!
autocmd GuiEnter * set columns=120 lines=70 number
augroup END
" shows the output from prettier - useful for syntax errors
nnoremap <leader>pt :!prettier %<CR>
" Plugin Configuration: {{{
" ALE: {{{
let g:ale_sign_error = 'X'
let g:ale_sign_warning = '!'
highlight link ALEWarningSign ErrorMsg
highlight link ALEErrorSign WarningMsg
nnoremap <silent> <leader>ne :ALENextWrap<CR>
nnoremap <silent> <leader>pe :ALEPreviousWrap<CR>
let g:ale_fixers = {
\ 'bash': ['shfmt'],
\ 'elixir': ['mix_format'],
\ 'javascript': ['prettier'],
\ 'javascript.jsx': ['prettier'],
\ 'json': ['prettier'],
\ 'ruby': ['rubocop'],
\ 'scss': ['prettier'],
\ 'zsh': ['shfmt'],
\}
let g:ale_fix_on_save = 1
" }}}
" }}}
if filereadable(expand('~/.vimrc.local'))
source ~/.vimrc.local
endif