Today I realized how easy it can be to create boot modules in vim.
A boot module is defined with the same name as the original module but with -boot
at the end of the file.
Since %
means “the name of the current file” in Vim’s command mode, if you’re editing module A.B.C, to create a boot module, you can simply use the command :tabe %-boot
to create and start editing the boot module in a separate tab (or :edit %-boot
, :vsp %-boot
, etc…)