-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
145 lines (118 loc) · 4.14 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
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM Config "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintained by Charly Román <charly@croman.mx> "
" Compatible with Mac & Linux "
" Part of dotfiles: https://github.com/Carlangueitor/dotfiles "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General {{{
set nocompatible " Be Improved
set nowrap
set modeline
set modelines=10
filetype off
" }}}
" Bundle {{{
if has('vim_starting')
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand("~/.vim/bundle"))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'bling/vim-airline'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'zxqfl/tabnine-vim'
NeoBundle 'marijnh/tern_for_vim'
NeoBundle 'mustache/vim-mustache-handlebars'
NeoBundle 'dracula/vim'
NeoBundle 'ekalinin/Dockerfile.vim'
NeoBundle 'tmhedberg/SimpylFold'
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'xolox/vim-session'
NeoBundle 'xolox/vim-misc'
NeoBundle 'tomtom/tcomment_vim'
NeoBundle 'fatih/vim-go'
NeoBundle 'posva/vim-vue'
NeoBundle 'elixir-editors/vim-elixir'
NeoBundle 'othree/xml.vim'
NeoBundle 'othree/yajs.vim'
NeoBundle 'sheerun/vim-polyglot'
NeoBundle 'wincent/ferret'
NeoBundle 'ambv/black'
NeoBundle 'iamcco/markdown-preview.nvim'
NeoBundle 'w0rp/ale'
NeoBundle 'raimon49/requirements.txt.vim'
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
"}}}
"GUI {{{
syntax on
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
colorscheme dracula
set number
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=L
set laststatus=2
set colorcolumn=80
let g:dracula_bold = 1
let g:dracula_italic = 1
let g:dracula_underline = 1
let g:dracula_colorterm = 1
let g:airline_powerline_fonts = 1
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
set guifont=Source\ Code\ Pro\ Semibold\ 13
if has("gui_running")
if has("gui_macvim")
set guifont=Sauce\ Code\ Powerline:h18
else
set guifont=Source\ Code\ Pro\ for\ Powerline\ Semibold\ 11
endif
endif
"}}}
set incsearch
set ignorecase
set smartcase
let g:ale_completion_enabled = 0
let g:ale_open_list = 1
let g:ale_linters = {
\'typescript': ['eslint'],
\}
let g:ale_fixers = {
\'*': ['remove_trailing_lines', 'trim_whitespace'],
\'javascript': ['prettier'],
\'typescript': ['prettier'],
\'python': ['black'],
\}
let g:ale_fix_on_save = 1
let g:ale_python_black_options = '-l 120'
set nobackup
set noswapfile
set autoread
au BufRead,BufNewFile *.sls setfiletype yaml
set completeopt-=preview
set backspace=indent,eol,start
au FileType css setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType html setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType htmldjango setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType html.mustache setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType html.handlebars setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType javascript setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType typescript setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType json setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType python setl tabstop=4 softtabstop=4 shiftwidth=4 smarttab expandtab
au FileType Jenkinsfile setl tabstop=4 softtabstop=4 shiftwidth=4 smarttab expandtab
au FileType php setl tabstop=4 softtabstop=4 shiftwidth=4 smarttab expandtab
au FileType vue setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType yaml setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType docker-compose setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
au FileType scss setl tabstop=2 softtabstop=2 shiftwidth=2 smarttab expandtab
let g:session_autosave = 'no'
let g:session_autoload = 'no'