tyru / open-browser.vim

Open URI with your favorite browser from your most favorite editor
http://www.vim.org/scripts/script.php?script_id=3133
Other
509 stars 48 forks source link

Improve startup time #122

Closed asheq-svmx closed 5 years ago

asheq-svmx commented 5 years ago

I profiled my vim startup with https://github.com/hyiltiz/vim-plugins-profile, and discovered that open-browser takes longer to startup than most of my other plugins:

====================================
Top 10 plugins slowing vim's startup
====================================
1        10.593   vim-unimpaired
2         8.526   open-browser.vim
3         4.002   vim-fieldtrip
4         2.167   vim-textobj-function
5         2.066   vim-textobj-comment
6         2.020   vim-textobj-indent
7         1.837   vim-textobj-xmlattr
8         1.629   vim-textobj-parameter
9         1.103   vim-textobj-entire
10        1.093   vim-sneak
====================================

Would you be willing to investigate why this is the case, and how to make it faster?

PS: I love this plugin, and use it every single day.