From ba9f9a39646d36d3e86e193ebb156ea8d90a9f1d Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 26 Jun 2014 02:21:12 -0700 Subject: [PATCH] Created How to profile vim-gitgutter (markdown) --- How-to-profile-vim-gitgutter.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 How-to-profile-vim-gitgutter.md diff --git a/How-to-profile-vim-gitgutter.md b/How-to-profile-vim-gitgutter.md new file mode 100644 index 0000000..4d22aa0 --- /dev/null +++ b/How-to-profile-vim-gitgutter.md @@ -0,0 +1,12 @@ +The best way to identify bottlenecks is to profile Vim (see `:help profiler`). + +Add these two lines to your vimrc, ensuring you put them above any package manager such as pathogen or vundle. (The second line assumes your copy of vim-gitgutter lives in a directory named `vim-gitgutter`; adjust as needed.) + +```viml +profile start gitgutter.log +profile! file */vim-gitgutter/* +``` + +Now launch Vim and do whatever makes it slow. When you quit Vim it will write the log file in the current directory. + +Please post the log file in a gist and send me a link.