I tend to use lines of hashes and dashes for formatting and breaking up code files (e.g., CSS files):
/* -------------------------------------------------------------------
* Layout Styles
* -----------------------------------------------------------------*/
In vim I would use the command 80a-<ESC> which would insert 80 - characters from the location after the cursor.
I’ve poked around in the Sublime documentation, but haven’t come across a good way of replicating the above vim command in subl. Vintage mode does not include support for this command sequence.
Is there a corresponding command that does something similar in Sublime or would a static snippet be the simplest solution?
I don’t think there is any repeat character possibility. To do this with any character I think would require a plugin, but the basic functionality of inserting a big comment block can easily be achieved with a snippet:
Go to
New Snippetthrough the menus and add this code:then save the snippet in your
Packages\Userfolder, assomething.sublime-snippet. Should work straight away, you just have to typecomment(or whatever you change it to..) then hittab, then actually write your comment title.