-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.vim
139 lines (104 loc) · 3.58 KB
/
plugins.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
" === PLUGINS ===
" required by vunddle
filetype off " required
set rtp+=~/.config/nvim/bundle/Vundle.vim/
" required by vunddle
call vundle#begin('~/.config/nvim/bundle')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" Toggle the cursorshape in the terminal
Plugin 'jszakmeister/vim-togglecursor'
" Provides easy to use, file-type sensible comments for Vim.
Plugin 'tomtom/tcomment_vim'
" Helps to end certain structures automatically
Plugin 'tpope/vim-endwise'
" Enable repeating supported plugin maps with '.'
Plugin 'tpope/vim-repeat'
" Extended % matching for HTML, LaTeX, and many other languages
Plugin 'vim-scripts/matchit.zip'
" Easily search for, substitute, and abbreviate multiple variants of a word
Plugin 'tpope/vim-abolish'
" Provides a much simpler way to use some motions in vim
Plugin 'Lokaltog/vim-easymotion'
" Allows you to use <Tab> for all your insert completion needs
Plugin 'ervandew/supertab'
let g:SuperTabContextDefaultCompletionType = "<c-n>"
" Dash Searching
Plugin 'rizzatti/funcoo.vim.git'
Plugin 'rizzatti/dash.vim.git'
nmap <Leader>qs <Plug>DashSearch
nmap <Leader>qa <Plug>DashGlobalSearch
" Full path fuzzy file, buffer, mru, tag, ... finder for Vim.
Plugin 'ctrlpvim/ctrlp.vim'
nnoremap <c-b> :<C-U>CtrlPBuffer<CR>
" AG aka The Silver Searcher
Plugin 'rking/ag.vim.git'
" nmap g/ :Ag!<space>
" nmap g* :Ag! -w <C-R><C-W><space>
" nmap ga :AgAdd!<space>
" nmap gn :cnext<CR>
" nmap gp :cprev<CR>
" nmap gq :ccl<CR>
" nmap gl :cwindow<CR>
" Tagbar for navigation by tags using CTags
Bundle 'majutsushi/tagbar.git'
let g:tagbar_autofocus = 1
map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
map <Leader>. :TagbarToggle<CR>
" NERDTree for project drawer
Plugin 'scrooloose/nerdtree.git'
let NERDTreeHijackNetrw = 0
nmap <leader>g :NERDTreeToggle<CR>
nmap <leader>G :NERDTreeFind<CR>
" ZoomWin to fullscreen a particular buffer without losing others
Plugin 'vim-scripts/ZoomWin.git'
map <Leader>z :ZoomWin<CR>
" Unimpaired for keymaps for quicky manipulating lines and files
Plugin 'tpope/vim-unimpaired.git'
" Bubble single lines
nmap <C-Up> [e
nmap <C-Down> ]e
" Bubble multiple lines
vmap <C-Up> [egv
vmap <C-Down> ]egv
" Syntastic for catching syntax errors on save
Plugin 'scrooloose/syntastic.git'
let g:syntastic_enable_signs=1
let g:syntastic_quiet_messages = {'level': 'warning'}
" syntastic is too slow for haml and sass
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['haml','scss','sass'] }
" gundo for awesome undo tree visualization
Plugin 'sjl/gundo.vim.git'
map <Leader>h :GundoToggle<CR>
" surround for adding surround 'physics'
Plugin 'tpope/vim-surround.git'
" # to surround with ruby string interpolation
let g:surround_35 = "#{\r}"
" - to surround with no-output erb tag
let g:surround_45 = "<% \r %>"
" = to surround with output erb tag
let g:surround_61 = "<%= \r %>"
" Multiple Cursor
Plugin 'terryma/vim-multiple-cursors.git'
" Lean & Mean status/tabline
Plugin 'bling/vim-airline'
let g:airline_powerline_fonts = 1
" Git plugin
Plugin 'tpope/vim-fugitive'
" Blade syntax highlighting
Plugin 'xsbeats/vim-blade'
" facebook
Plugin 'mxw/vim-xhp'
Plugin 'hhvm/vim-hack'
autocmd FileType php set tabstop=4|set softtabstop=4|set shiftwidth=4
autocmd FileType hack set tabstop=4|set softtabstop=4|set shiftwidth=4
au BufEnter *.php set ai sw=4 ts=4 sta et fo=croql
au BufEnter *.hh set ai sw=4 ts=4 sta et fo=croql
" Javascript plugin
Plugin 'pangloss/vim-javascript'
" required by vunddle
call vundle#end()
" required by vunddle
filetype plugin indent on " required by vunddle