-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
67 lines (50 loc) · 1.36 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
"The block started by 'plug#begin' and ended by 'plug#end'
" sets the plugins up
call plug#begin('~/.vim/plugged')
Plug 'itchyny/lightline.vim'
"TODO: check if fzf and fzf.vim depend on fzf shell package
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
"ack.vim depends on ag utility (apt-get install silversearcher-ag)
Plug 'mileszs/ack.vim'
Plug 'tpope/vim-fugitive'
Plug 'valloric/youcompleteme'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()
" Lightline configs
set noshowmode
let g:lightline = {
\ 'colorscheme': 'ayu_light',
\ }
" Set choloscheme
colorscheme elflord
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Enable mouse
set mouse=a
" Enable hidden buffers
set hidden
" Sets the line number bar
set nu
set relativenumber
" Sets the folding method
set foldmethod=syntax
set laststatus=2
let g:ackprg = 'ag --nogroup --nocolor --column'
" let g:ycm_server_python_interpreter = '/usr/bin/python2'
" Configures ack.vim to use Ag
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
" Configures font for gVim
if has("gui_running")
set guifont=Consolas:h9:cANSI:qDRAFT
endif
set clipboard=unnamedplus
command Gtdef YcmCompleter GoToDefinition
command Gtdec YcmCompleter GoToDeclaration