Vim - Macro to expand verilog bus
问题 I can't seem to be able to create a vim macro that does the following: Source: this_is_a_bus[10:0] another_bus[2:0] Required Dest: this_is_a_bus[10] this_is_a_bus[9] this_is_a_bus[8] this_is_a_bus[7] this_is_a_bus[6] this_is_a_bus[5] this_is_a_bus[4] this_is_a_bus[3] this_is_a_bus[2] this_is_a_bus[1] this_is_a_bus[0] another_bus[2] another_bus[1] another_bus[0] What I tried to do: I can search for \d\+:\d\+ and put the cursor on the first number, then copy that with yw to the memory. However