-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.vimrc
107 lines (83 loc) · 3.01 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
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()
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-vinegar'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
Plugin 'jistr/vim-nerdtree-tabs'
"------------------------------------------------------------------------------"
" All of your Plugins must be added before the following line
"------------------------------------------------------------------------------"
call vundle#end() " required
filetype plugin indent on " required
"------------------------------------------------------------------------------"
" Plugin Settings
"------------------------------------------------------------------------------"
" CtrlP
let g:ctrlp_custom_ignore='node_modules\|DS_Store\|git'
let g:ctrlp_match_window='top,order:ttb,min:1,max:30,results:30'
nmap <c-E> :CtrlPMRUFiles<cr>
nmap <c-R> :CtrlPBufTag<cr>
" NerdTree
let NERDTreeHijackNetrw=0
nmap <Leader>1 :NERDTreeToggle<cr>
nmap <Leader><space> :nohlsearch<cr>
" NerdTreeTabs
map <Leader>n <plug>NERDTreeTabsToggle<cr>
" airline
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#fnamemod=':t'
" let g:airline_theme='term_dark'
" GitGutter
"------------------------------------------------------------------------------"
" General
"------------------------------------------------------------------------------"
set backspace=indent,eol,start
set updatetime=250
let mapleader=','
"------------------------------------------------------------------------------"
" UI
"------------------------------------------------------------------------------"
set number
set t_CO=256
set guioptions-=e
set linespace=16
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
"colorscheme atom-dark-256
colorscheme default
syntax enable
"------------------------------------------------------------------------------"
" Mappings
"------------------------------------------------------------------------------"
nmap <Leader>ev :tabedit $MYVIMRC<cr>
nmap <Leader><space>> :nohlsearch<cr>
nmap <C-H> <C-W><C-H>
nmap <C-J> <C-W><C-J>
nmap <C-K> <C-W><C-K>
nmap <C-L> <C-W><C-L>
"------------------------------------------------------------------------------"
" Auto Commands
"------------------------------------------------------------------------------"
augroup auutosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
"------------------------------------------------------------------------------"
" Tab
"------------------------------------------------------------------------------"
set smartindent
set tabstop=4
set expandtab
set shiftwidth=4