-
Notifications
You must be signed in to change notification settings - Fork 0
/
vundle_config.vim
89 lines (75 loc) · 2.54 KB
/
vundle_config.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
" Use vundle: https://github.com/VundleVim/Vundle.vim
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" plugins on GitHub repo
Plugin 'rking/ag.vim'
Plugin 'vim-scripts/argtextobj.vim'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tmhedberg/matchit'
" Plugin 'Valloric/MatchTagAlways'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
" Plugin 'natduca/quickopen'
" Plugin 'scrooloose/syntastic'
Plugin 'majutsushi/tagbar'
Plugin 'tomtom/tcomment_vim'
Plugin 'ConradIrwin/vim-bracketed-paste'
Plugin 'altercation/vim-colors-solarized'
Plugin 'easymotion/vim-easymotion'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-unimpaired'
Plugin 'nelstrom/vim-visual-star-search'
" Plugin 'Valloric/YouCompleteMe'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" ag.vim
nnoremap <leader>ag :Ag!
" ctrlp.vim
map <leader>cp :CtrlP
map <leader>cpb :CtrlPBuffer
map <leader>cpm :CtrlPMRU
map <leader>cpr :CtrlPRoot
if executable('ag')
" Using ag will be faster. Use ~/.agignore to specify ignore patterns.
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""'
else
let g:ctrlp_max_files = 0 " no limit of the number of files to scan
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' " ignore those files
endif
let g:ctrlp_match_window = 'bottom,order:ttb' " position and result order
let g:ctrlp_max_height = 20 " height of ctrlp window
let g:ctrlp_working_path_mode = 0 " use current working directory as search dir
let g:ctrlp_follow_symlinks = 1 " follow symlinks but ignore looped ones
" nerdtree
map <leader>nt :NERDTree
map <leader>ntc :NERDTreeClose
map <leader>ntt :NERDTreeToggle
map <leader>ntf :NERDTreeFind
let g:nerdtree_tabs_open_on_gui_startup = 0 " Don't auto open nerdtree for gui
let g:NERDTreeGitStatusIndicatorMapCustom = {
\ "Modified" : "✹",
\ "Staged" : "✚",
\ "Untracked" : "✭",
\ "Renamed" : "➜",
\ "Unmerged" : "═",
\ "Deleted" : "✖",
\ "Dirty" : "✗",
\ "Clean" : "✔︎",
\ "Unknown" : "?"
\ }
" tagbar
map <leader>tt :TagbarToggle
" vim-colors-solarized
let g:solarized_visibility = "low"
" vim-easymotion
map <Leader>j <Plug>(easymotion-j)
map <Leader>k <Plug>(easymotion-k)
map <Leader>w <Plug>(easymotion-w)
map <Leader>b <Plug>(easymotion-b)