-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.vimrc
127 lines (99 loc) · 2.6 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
set nocompatible
syntax on
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
Plugin 'altercation/vim-colors-solarized'
Plugin 'flazz/vim-colorschemes'
Plugin 'majutsushi/tagbar'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'vim-syntastic/syntastic'
Plugin 'jiangmiao/auto-pairs'
Plugin 'Valloric/YouCompleteMe'
Plugin 'Chiel92/vim-autoformat'
Plugin 'nvie/vim-flake8'
call vundle#end()
filetype plugin indent on
set modelines=0
set number
set ruler
set cursorline
set encoding=utf-8
set history=100
set visualbell
set gcr=a:blinkon0
set autoread
set hidden
set completeopt=menu,menuone,noinsert
set macligatures " ligature support in macvim
set guifont=FiraCode-Retina:h14
set noswapfile
set nobackup
set nowb
set wrap
set textwidth=79
set colorcolumn=+1
set formatoptions=tcqrn1
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
set noshiftround
set scrolloff=3
set backspace=indent,eol,start
set matchpairs+=<:>
set incsearch
set ignorecase
set nohlsearch
set ttyfast
set laststatus=2
set showmode
set showcmd
set notermguicolors " true colors
set t_Co=256
set background=dark
let g:solarized_termcolors=256
colorscheme OceanicNext
" nerdtree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc()==0 && !exists("s:std_in") | NERDTree | endif
" autocmd bufenter * if (winnr("$")==1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
map <C-n> :NERDTreeToggle<CR>
" airline
let g:airline_theme='solarized'
let g:airline_solarized_bg='dark'
" tagbar
map <C-m> :TagbarToggle<CR>
" ctrlp
let g:ctrlp_map='<C-p>'
let g:ctrlp_working_path_mode='ra'
" syntastic
let python_highlight_all=1
let g:syntastic_python_python_exec = 'python3'
let g:syntastic_python_checkers = ['flake8']
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list=1
let g:syntastic_auto_loc_list=1
let g:syntastic_check_on_open=1
let g:syntastic_check_on_wq=0
" autopairs
let g:AutoPairs={'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '<':'>', '<<':''}
" youcompleteme
let g:ycm_min_num_of_chars_for_completion=1
let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py'
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" autoformat
let g:formatterpath=['/usr/bin/autopep8']
map <C-f> :Autoformat<CR>
" custom
map <C-w><C-l> :lclose<CR>
" this is deprecated
" use init.vim (NeoVim Config) for reference