Is there a way to set the cursor position for a mapping? For example:
nmap erb; <%= %>
I want to set the cursor after the equals sign. Can this be done?
|
Is there a way to set the cursor position for a mapping? For example:
I want to set the cursor after the equals sign. Can this be done? |
||||
|
|
|
I am assuming you want this mapping to insert "
|
|||
|
|
Shall do it. NB: there exist several plugins that help defining such mappings. For instance, with lh-brackets, the definition would be done with:
|
|||
|
|