From 6f72e870734e3b471e5db876265200f272d83367 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 30 Aug 2016 08:22:27 +0200 Subject: [PATCH] add debugging shortcurt --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vimrc b/vimrc index e70cc9f..0ed8dd2 100644 --- a/vimrc +++ b/vimrc @@ -237,6 +237,11 @@ vnoremap 0 :!node nnoremap + nnoremap - +" debugging, use leader-DD to start, do a slow action, then leader-DQ to +" finish. Your output will be in profile.log +nnoremap DD :exe ":profile start profile.log":exe ":profile func *":exe ":profile file *" +nnoremap DQ :exe ":profile pause":noautocmd qall! + "" abbreviations cnoreabbrev W! w! cnoreabbrev Q! q!