-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
89 lines (76 loc) · 2.11 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
set nocompatible
set bs=2
filetype off
set visualbell
" Begin vim-plugin Plugins List
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'kien/rainbow_parentheses.vim'
Plug 'mechatroner/rainbow_csv'
Plug 'neoclide/coc.nvim', {'branch' : 'release'}
call plug#end()
" End vim-plug Plugins List
"-------------------------------
" Theme setup
"-------------------------------
set background=dark
" We assume terminal is setup correctly for solarized
colorscheme default
let g:solarized_termcolors=256
if has("gui_running")
set background=light
colorscheme solarized
endif
"-------------------------------
"Syntax Highlighting options
"-------------------------------
syntax on
"Highlight whitespace errors
highlight link WhiteSpaceError ErrorMsg
"Flag trailing whitespace as an error
au Syntax * syn match WhiteSpaceError /\(\zs\%#\|\s\)\+$/ display
"Flag mixed leading space/tabs as an error
au Syntax * syn match WhiteSpaceError /^ \+\ze\t/ display
filetype plugin indent on
set incsearch
set hlsearch
set cursorline
set showcmd
set ruler
set number
set relativenumber
set showmatch
"Allow maching angle brackets
set matchpairs+=<:>
set modeline
set wildmode=longest,list,full
set wildmenu
"-------------------------------
"Folding config
"-------------------------------
set nofoldenable
"set foldenable "Enable folding
"set foldlevelstart=9999 "Never fold by default
"set foldnestmax=10 "Maximum 10 nested folds
"set foldmethod=indent "Default fold by indentation
"-------------------------------
"Netrw Configs
"-------------------------------
let g:netrw_liststyle=3 "Preferred listing style
let g:netrw_banner=0 "Don't show useless banner
"-------------------------------
"Python Config
"-------------------------------
let python_highlight_all=1
"-------------------------------
"Vim airline configuration
"-------------------------------
"Enable powerline fancy glyphs
let g:airline_powerline_fonts=1
"Always show the statusbar
set laststatus=2
"Don't show mode below statusline since airline already provides it
set noshowmode