-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
68 lines (58 loc) · 1.39 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
set nocompatible
filetype off
syntax on
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'bling/vim-airline'
Plugin 'airblade/vim-gitgutter'
Plugin 'mitsuhiko/vim-jinja'
call vundle#end()
filetype plugin indent on
"This unsets the "last search pattern" register by hitting return
nnoremap <CR> :noh<CR><CR>
" Airline setup
set laststatus=2
let g:airline_theme = 'bubblegum'
let g:airline_detect_paste = 1
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline_left_alt_sep = '|'
let g:airline_right_alt_sep = '|'
let g:airline_section_c = '%{getcwd()}/%f'
function! AirlineInit()
let g:airline_section_a = airline#section#create(['mode'])
endfunction
autocmd VimEnter * call AirlineInit()
" GitGutter setup
let g:gitgutter_sign_column_always = 1
" FZF setup
set rtp+=/usr/local/Cellar/fzf/0.13.3
" Color scheme
set t_Co=256
set background=dark
let g:hybrid_custom_term_colors = 1
colorscheme hybrid
" Cursor line
set cursorline
set iminsert=0
set imsearch=0
set incsearch
set ic
set hls
set number
set iskeyword=@,48-57,_,192-255
set expandtab
set smarttab
set ts=4
set backspace=2 " make backspace work like most other apps
set backspace=indent,eol,start
set nowrap
set ls=2
set enc=utf-8
set scrolloff=10
set shiftwidth=4
set expandtab
" Commands
command W :execute ':silent w !sudo tee % > /dev/null' | :edit!