Profiling helpers
4b374fcef736eac397d4568e59a964bfc11763b6
1 parent
22652870
.vimrc
+14 -0
| 194 | 194 | try |
|
| 195 | 195 | colorscheme shady |
|
| 196 | 196 | catch |
|
| 197 | 197 | endtry |
|
| 198 | 198 | ||
| 199 | + | " Profiling |
|
| 200 | + | command! ProfileStart call s:ProfileStart() |
|
| 201 | + | function! s:ProfileStart() |
|
| 202 | + | profile start profile |
|
| 203 | + | profile func * |
|
| 204 | + | profile file * |
|
| 205 | + | endfunction |
|
| 206 | + | ||
| 207 | + | command! ProfileStop call s:ProfileStop() |
|
| 208 | + | function! s:ProfileStop() |
|
| 209 | + | profile stop |
|
| 210 | + | tabnew profile |
|
| 211 | + | endfunction |
|
| 212 | + | ||
| 199 | 213 | call plug#begin() |
|
| 200 | 214 | ||
| 201 | 215 | Plug 'scrooloose/nerdcommenter' |
|
| 202 | 216 | Plug 'airblade/vim-gitgutter' |
|
| 203 | 217 | Plug 'tpope/vim-fugitive' |