Today I realised that I often like to define sections in my code like so:
####################
# Helper Functions #
####################
But that it's tedious to do. Assuming I have a line such as this:
# Helper Functions #
What is the shortest set of vim
keystrokes to wrap it in a #
? Shift does not count as a keystroke in this challenge.
Test cases:
Input: "#test test test#"
Output:
################
#test test test#
################
Input: "#this is a nice block comment#"
Output:
##############################
#this is a nice block comment#
##############################
Input: "# s p a c e s must be supported a l s o#"
Output:
########################################
# s p a c e s must be supported a l s o#
########################################