-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
160 lines (142 loc) · 4.67 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
" The original configuration https://github.com/araujobd/dotfiles/blob/master/vimrc
" [email protected], copy in: 2017 Ago 30
""""""""""""""""""""""""""""""""""""""""
" Vim Configuration File "
" Maintainer: Arthur Gorgonio "
" Last Change: 2019 Mar 01 "
""""""""""""""""""""""""""""""""""""""""
""" COLORS CODE
" I choose these colors to customize the rainbow parentheses plugin. These
" colors are ordened by xterm code. The follow lines represent a list of the
" colors than I use.
" Code color in xterm - the name of the color - the code in rgb
" 009 - Red - #FF0000
" 010 - Green - #00FF00
" 011 - Yellow - #FFFF00
" 013 - Fuchsia - #FF00FF
" 014 - Aqua - #00FFFF
" 021 - Blue - #0000FF
" 059 - Grey37 - #5F5F5F
" 202 - OrangeRed1 - #FF5F00
"
" The follow links were used to choose the colors and the icon in the configuration
" color: https://jonasjacek.github.io/colors/
""" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim' "Pluguin manager
" Plugins
Plugin 'vim-airline/vim-airline' " Airline
Plugin 'vim-airline/vim-airline-themes' " Airline themes
"Plugin 'scrooloose/nerdtree' " Nerd Tree
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-fugitive'
"Plugin 'luochen1990/rainbow' " Rainbow match
Plugin 'w0rp/ale' " Systax check
"Plugin 'maralla/completor.vim' " Suggests words
Plugin 'davidhalter/jedi-vim' " Jedi Pluguin
Plugin 'vifm/vifm.vim'
Plugin 'JamshedVesuna/vim-markdown-preview'
" Color schemes
Plugin 'ArthurGorgonio/vim-themes-improved'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Plugins configurations
" ALE
let g:ale_fix_on_save = 1
let g:ale_linters = {'python': ['flake8', 'pylint']}
let g:ale_fixers = {
\ 'python': [
\ 'add_blank_lines_for_python_control_statements',
\ 'autopep8',
\ 'black',
\ 'isort',
\ 'remove_trailing_lines',
\ 'trim_whitespace',
\ 'yapf'
\ ]
\}
" " Rainbow Parenteses
" "'parentheses': ['start=/(/ end=/)/ fold'
" " the word fold indicates that (), [], and {} are colored individually by the
" " sectioned sequence
" let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle
" let g:rainbow_conf = {
" \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'],
" \ 'ctermfgs': [9, 10, 11, 21, 13, 14, 22, 202],
" \ 'operators': '_,_',
" \ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold',
" \ 'start=/{/ end=/}/ fold'],
" \ 'separately': {
" \ '*': {},
" \ 'tex': {
" \ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/',
" \ 'start=/\{\ end=/\}\ '],
" \ },
" \ 'lisp': {
" \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick',
" \ 'darkorchid3'],
" \ },
" \ 'vim': {
" \ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/',
" \ 'start=/{/ end=/}/ fold',
" \ 'start=/(/ end=/)/ containedin=vimFuncBody',
" \ 'start=/\[/ end=/\]/ containedin=vimFuncBody',
" \ 'start=/{/ end=/}/ fold containedin=vimFuncBody'],
" \ },
" \ }
" \}
" Airline
let g:airline#extensions#tabline#enabled=1
let g:airline_powerline_fonts=1
let g:airline_theme='wombat'
"" NerdTree Configuration
"" Give a shortcut key to NERD Tree
"map <F2> :NERDTreeToggle<CR>
"let g:NERDTreeChDirMode=2
" Tagbar
nmap <F8> :TagbarToggle<CR>
" Configure the Markdown plugin
let vim_markdown_preview_browser='Mozilla Firefox'
let vim_markdown_preview_github=1
syntax on
" Basic configurations
let python_highlight_all=1
set autoindent
set bs=2 "backspace working well
set clipboard=unnamed
set colorcolumn=80
set cursorline
set encoding=utf8
set expandtab
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set noshowmode
set noswapfile
set number
set pastetoggle=<F12> " sane identation on pastes
set ruler
set shiftwidth=2
set showbreak=···
set showcmd
set showtabline=2
set smartcase
set smartindent
set smarttab
set softtabstop=2
set t_Co=256
set undolevels=1000
" Setting color scheme
colorscheme calm-theme
" Remaping commands
nnoremap <Tab> :bnext<CR>
nnoremap <S-Tab> :bprevious<CR>