-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
80 lines (65 loc) · 2.33 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
autocmd FileType html setlocal shiftwidth=2 tabstop=2
autocmd FileType xml setlocal shiftwidth=2 tabstop=2
autocmd FileType yaml setlocal shiftwidth=2 tabstop=2
autocmd FileType sh setlocal shiftwidth=2 tabstop=2
autocmd FileType go setlocal shiftwidth=4 tabstop=4
autocmd FileType javascript setlocal shiftwidth=4 tabstop=4
autocmd FileType json setlocal shiftwidth=4 tabstop=4
autocmd FileType markdown setlocal shiftwidth=2 tabstop=2
autocmd FileType tf setlocal shiftwidth=2 tabstop=2
autocmd FileType typescript setlocal shiftwidth=2 tabstop=2
autocmd FileType cucumber setlocal shiftwidth=4 tabstop=4
autocmd FileType kotlin setlocal shiftwidth=4 tabstop=4
set expandtab
set number
filetype off " required
"=====================================================
" Vundle settings
"=====================================================
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"---------=== Code/project navigation ===-------------
Plugin 'scrooloose/nerdtree' " Project and file navigation
"------------------=== Other ===----------------------
Plugin 'altercation/vim-colors-solarized' " Solarized schema
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
"------------------=== Linters ===----------------------
Plugin 'dense-analysis/ale'
let g:ale_linters = {
\ 'python': ['black', 'flake8', 'pylint', 'mypy'],
\ 'markdown': ['mdl'],
\}
"------------------=== Golang ===----------------------
Plugin 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
"------------------=== Kotlin ===----------------------
Plugin 'udalov/kotlin-vim'
"------------------=== Terraform ===----------------------
Plugin 'hashivim/vim-terraform'
"------------------=== Packer ===----------------------
Plugin 'hashivim/vim-packer'
call vundle#end() " required
syntax on
filetype on
filetype plugin on
filetype plugin indent on
set laststatus=2
set encoding=utf-8
set t_Co=256
" Scrolling
set scrolloff=5
" Main theme
set background=light
colorscheme solarized
" vim-go
let g:go_def_mode='gopls'
let g:go_info_mode='gopls'
" nerdtree
let NERDTreeShowHidden=1
" GoLang
let g:go_fmt_command = "goimports"
" fix slow Typescript syntax highlighting in Vim
set re=0