AndrewRadev / splitjoin.vim

Switch between single-line and multiline forms of code
http://www.vim.org/scripts/script.php?script_id=3613
MIT License
1.91k stars 89 forks source link

Faster startup #193

Closed AndrewRadev closed 2 years ago

AndrewRadev commented 2 years ago

The slowest part of plugin/splitjoin.vim is defining the setting defaults (though it's still pretty fast). We can make this faster by just defining the dict directly.

Moving the main entry points out of the plugin directory is a very, very minor improvement, if any. But it's a good chunk of code that has always sat a bit weirdly in the plugin file, so it doesn't hurt to move it to autoload, too.