mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
add debugging shortcurt
This commit is contained in:
5
vimrc
5
vimrc
@@ -237,6 +237,11 @@ vnoremap <silent> <Leader>0 :!node<cr>
|
||||
nnoremap + <c-a>
|
||||
nnoremap - <c-x>
|
||||
|
||||
" debugging, use leader-DD to start, do a slow action, then leader-DQ to
|
||||
" finish. Your output will be in profile.log
|
||||
nnoremap <silent> <leader>DD :exe ":profile start profile.log"<cr>:exe ":profile func *"<cr>:exe ":profile file *"<cr>
|
||||
nnoremap <silent> <leader>DQ :exe ":profile pause"<cr>:noautocmd qall!<cr>
|
||||
|
||||
"" abbreviations
|
||||
cnoreabbrev W! w!
|
||||
cnoreabbrev Q! q!
|
||||
|
||||
Reference in New Issue
Block a user