-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
75 lines (61 loc) · 1.69 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
syntax on
set number
" tabs/spaces setup
set tabstop=4
set shiftwidth=2
set expandtab
set smarttab
" wrap long lines
set wrap
set linebreak
" keep three lines above/below cursor when scrolling
set scrolloff=3
set linespace=5
filetype plugin indent on
autocmd FileType javascript setlocal ts=2 sts=2 sw=2
autocmd FileType vue setlocal ts=2 sts=2 sw=2
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 indentkeys-=0# indentkeys-=<:>
autocmd FileType yml setlocal ts=2 sts=2 sw=2 indentkeys-=0# indentkeys-=<:>
autocmd FileType make setlocal noexpandtab
autocmd FileType asm setlocal ts=2 sts=0 sw=4 syntax=nasm
" showmatch
set showmatch
set matchtime=3
" remove trailing spaces using F5 key on normal mode
nnoremap <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar><CR>
" lightline
set noshowmode
" indentLine
let g:indentLine_setColors = 0
" vue
let g:vue_disable_pre_processors=1
let g:javascript_plugin_jsdoc=1
autocmd FileType vue syntax sync fromstart
autocmd BufRead,BufNewFile *.vue setlocal filetype=vue
" statusline
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" syntastic
let g:syntastic_always_populate_loc_list=1
let g:syntastic_auto_loc_list=0
let g:syntastic_check_on_open=0
let g:syntastic_check_on_wq=0
" netrw
let g:netrw_liststyle=3
"
" plugins
"
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'yuezk/vim-js'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'HerringtonDarkholme/yats.vim'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'https://github.com/vim-syntastic/syntastic.git'
Plug 'elixir-editors/vim-elixir'
Plug 'itchyny/lightline.vim'
Plug 'othree/html5.vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'posva/vim-vue'
call plug#end()