macvim

How to see which plugins are making Vim slow?

荒凉一梦 提交于 2019-11-26 10:03:57
问题 Is there a way to profile Vim plugins? My MacVim becomes slower and slower when I open a large .py . I know I could deselect all plugins and reselect one by one to check which plugin is the culprit, but is there a faster way? My dotvim is here: https://github.com/charlax/dotvim 回答1: You can use built-in profiling support: after launching vim do :profile start profile.log :profile func * :profile file * " At this point do slow actions :profile pause :noautocmd qall! (unlike quitting noautocmd

What is the <leader> in a .vimrc file?

蹲街弑〆低调 提交于 2019-11-26 08:38:38
问题 I see <leader> in many .vimrc files, and I am wondering what does it mean? What is it used for? Just a general overview of the purpose and usage would be great. 回答1: The <Leader> key is mapped to \ by default. So if you have a map of <Leader>t , you can execute it by default with \ + t . For more detail or re-assigning it using the mapleader variable, see :help leader To define a mapping which uses the "mapleader" variable, the special string "<Leader>" can be used. It is replaced with the