-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
198 lines (139 loc) · 3.1 KB
/
init.vim
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
" Plugins {
call plug#begin('~/.vim/plugged')
" after adding a plug, run 'PlugInstall'
" Themes
Plug 'morhetz/gruvbox'
Plug 'altercation/vim-colors-solarized'
Plug 'blueshirts/darcula'
Plug 'Haron-Prime/Antares'
" Airline
" Plug 'vim-airline/vim-airline'
" Plug 'vim-airline/vim-airline-themes'
" Lightline
Plug 'itchyny/lightline.vim'
" Git
Plug 'tpope/vim-fugitive'
" vim-misc
Plug 'xolox/vim-misc'
" Ack
Plug 'mileszs/ack.vim'
" indentline - display the indention levels with thin vertical lines
Plug 'Yggdroot/indentLine'
" easytags
Plug 'xolox/vim-easytags'
" Tagbar
Plug 'majutsushi/tagbar'
" Markdown
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
" CtrlP
Plug 'ctrlpvim/ctrlp.vim'
" Todo list
Plug 'aserebryakov/vim-todo-lists'
" MultiCursor
Plug 'terryma/vim-multiple-cursors'
" Startify
Plug 'mhinz/vim-startify'
" Ack
Plug 'mileszs/ack.vim'
" Surround
Plug 'tpope/vim-surround'
" Repeat
Plug 'tpope/vim-repeat'
" Install Plugins
call plug#end()
" }
" Settings {
" disable vi compability
set nocompatible
" Bell
set vb t_vb=
" Tabs
set ts=8
set shiftwidth=8
set ai sw=8
set expandtab
" Search
set hlsearch
" Line numbering
set nonumber
" Wrapping
set nowrap
" enable line and column display
set ruler
"disable showmode since using vim-airline
set noshowmode
" file type
filetype on
filetype plugin on
filetype indent on
" syntax highlighting
syntax on
" scroll a bit horizontally when at the end of the line
set sidescroll=6
" Make it easier to work with buffers
set hidden
set confirm
set autowriteall
set wildmenu wildmode=full
" markdown
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_conceal = 0
" use Ag instead of Ack for ack.vim
let g:ackprg = 'ag --nogroup --nocolor --column'
" Colors
if !has('gui_running')
set t_Co=256
endif
" Lightline
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'gitbranch': 'fugitive#head'
\ },
\ }
" Python
let g:python3_host_prog='C:\Users\andre\AppData\Local\Programs\Python\Python35\python.exe'
" }
" Themes and Fonts {
colorscheme antares
syntax enable
set background=dark
" colorscheme darcula
" Airline Theme
" let g:airline_theme='wombat'
" Font
"set guifont=Consolas\ Regular:h16
" }
" Key Map {
" Leader
let mapleader=","
" replace Espace
inoremap jj <Esc>
" set moving per scroll line
noremap <buffer> <silent> k gk
noremap <buffer> <silent> j gj
noremap <buffer> <silent> 0 g0
noremap <buffer> <silent> $ g$
" toggle line numbers
nnoremap <silent> <leader>n :set number! number?<CR>
" toggle line wrap
nnoremap <silent> <leader>w :set wrap! wrap?<CR>
" Clear Search
nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
" Edit init.vim
nnoremap <leader>ie :e $MYVIMRC<CR>
" Reload init.vim
nnoremap <leader>il :source $MYVIMRC<CR>
" CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
" Search with Ack/Ag
nnoremap <Leader>a :Ack!<Space>
" Add file types
autocmd BufNewFile,BufRead *.bdy,*.spc,*.bdy,*.vw set syntax=sql
" }