-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.vim
More file actions
139 lines (106 loc) · 3.77 KB
/
plugins.vim
File metadata and controls
139 lines (106 loc) · 3.77 KB
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
139
" showmarks
let g:showmarks_enable = 0 " disabled by default by populardemand ;)
hi! link ShowMarksHLl LineNr
hi! link ShowMarksHLu LineNr
hi! link ShowMarksHLo LineNr
hi! link ShowMarksHLm LineNr
" syntastic
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
" delimitMate
let g:delimitMate_expand_space = 1
let g:delimitMate_expand_cr = 1
" nerdcommenter
" ,/ to invert comment on the current line/selection
nmap <leader>/ :call NERDComment(0, "invert")<cr>
vmap <leader>/ :call NERDComment(0, "invert")<cr>
" yankring
let g:yankring_replace_n_pkey = '<leader>['
let g:yankring_replace_n_nkey = '<leader>]'
" ,y to show the yankring
nmap <leader>y :YRShow<cr>
" CtrlP
let g:ctrlp_working_path_mode = 2 "Set to a directory that contains .git
let g:ctrlp_map = '<unique> <silent> <Leader><Leader>'
nnoremap <unique> <silent> <Leader><Leader><Leader> :CtrlPClearAllCaches<CR>:CtrlP<CR>
" AutoComplPop
set wildignore+=*.pdf,*.o,*.obj,*.jpg,*.png,*tags*
" Fugitive
" ,e for Ggrep
nmap <leader>grep :Ggrep
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Custom bindings for Fugitive
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
nmap <leader>gcb :Git checkout -b
nmap <leader>gr :Git rebase -i
nmap <leader>gcf :Git checkout -- %<CR>
nmap <leader>gst :Gstatus<CR>
nmap <leader>gp :Git push<CR>
nmap <leader>gl :Glog --<CR>
" Bindings to custom git commands
nmap <leader>gra :Git ra<CR>
nmap <leader>gdc :Git dc<CR>
nmap <leader>ggn :Git gn<CR>
autocmd QuickFixCmdPost *grep* cwindow
" Ack
nmap <leader>ack :Ack
if executable('ag')
let g:ackprg = 'ag --vimgrep'
endif
" vim-indentobject
" add Markdown to the list of indentation based languages
let g:indentobject_meaningful_indentation = ["haml", "sass", "python", "yaml", "markdown"]
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vimerl custom bindings
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Automatic folding
let erlang_folding = 0
" Hide and show errors
nmap <leader>ee :ErlangEnableShowErrors<CR>
nmap <leader>ede :ErlangDisableShowErrors<CR>
" Skeleton bindings
nmap <leader>ea :ErlangApplication<CR>
nmap <leader>es :ErlangSupervisor<CR>
nmap <leader>eg :ErlangGenServer<CR>
nmap <leader>ef :ErlangGenFsm<CR>
nmap <leader>ege :ErlangGenEvent<CR>
" vim-repeat
" silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
" matichit
let loaded_matchit = 1
" vim-ruby
let ruby_operators = 1
let ruby_space_errors = 1
" nerdtree
" Load NERDTree if no files was passed when calling vim
autocmd vimenter * if !argc() | NERDTree | endif
" Toggle NERDTree
noremap <C-p> :NERDTreeToggle<CR>
nmap <leader>p :NERDTreeFind<CR>
" bufexplorer
noremap <leader>' :BufExplorer<CR>
" gis-vim
" TODO: Check the OS and set accordingly
let g:gist_clip_command = 'pbcopy'
let g:gist_detect_filetype = 1
" vim-powerline
let g:Powerline_symbols = 'fancy'
" vim-solarized
hi! CursorLine term=underline cterm=underline gui=underline
let g:solarized_termtrans=1 " 1|0 background transparent
let g:solarized_bold=1 " 1|0 show bold fonts
let g:solarized_italic=1 " 1|0 show italic fonts
let g:solarized_underline=1 " 1|0 show underlines
let g:solarized_contrast="normal" " normal|high|low contrast
let g:solarized_visibility="low" " normal|high|low effect on whitespace characters
" xmpfilter
nmap <buffer> <F5> <Plug>(xmpfilter-run)
xmap <buffer> <F5> <Plug>(xmpfilter-run)
imap <buffer> <F5> <Plug>(xmpfilter-run)
nmap <buffer> <F4> <Plug>(xmpfilter-mark)
xmap <buffer> <F4> <Plug>(xmpfilter-mark)
imap <buffer> <F4> <Plug>(xmpfilter-mark)
au BufRead,BufNewFile *.scss set filetype=scss.css
au BufRead,BufNewFile *.sass set filetype=scss.css
autocmd FileType scss set iskeyword+=-
autocmd FileType sass set iskeyword+=-