I would like to be able to save my ViEmu macros between sessions of Visual Studio 2013. This feature was requested in 2010 and apparently almost made the cut for ViEmu 2.5:

I was wondering if there is a way to set a macro in the .viemurc file, so I don't have to redo it every time I start up VS. I know that it can be done in regular Vim via:
:let @s="0ftwwy$bp"
This will set a macro on register 's' for example. Doing the same in .viemurc so far just got me an error message.

I was indeed planning to add this to ViEmu 2.5, but I've had to drop it or I would never finish it. I will add it in later. ViEmu 2.5 does have multiple-key mappings and a few other exciting features.

As of ViEmu 3.2.1, this feature still does not seem to be implemented. I tried adding :let statements to _viemurc and simply got errors.

How might I work around this missing feature? Never closing Visual Studio is not going to work forever.

  • I'm unfamiliar with viemu. Does it let you yank to an arbitrary register? If so, you could have a file of your macros and do something like "sy$ to grab one and @s to play it – John O'M. Feb 20 '15 at 3:13
  • It does, and that basically works. I was considering that solution as somewhat of a last resort; better still would be to have this done automatically on starting the app (and saving macros somewhere automatically as well). That might be asking a bit much for a "workaround," but one can hope. – Andrew Feb 20 '15 at 3:25
  • 1
    This question appears to be about a proprietary vi emulator embedded in another program. Current consensus is that it is not considered to be vi and thus off-topic, but you may want to post a Meta question to discuss that. – 200_success Feb 20 '15 at 17:06
  • @200_success Thanks for the feedback. I did check help center before asking and interpreted "specific issues with the Vi and Vim family of editors" to include this type of plugin. Incidentally, viemu is not solely a programmer's plugin in that there is a version for Microsoft Office. – Andrew Feb 20 '15 at 20:48
  • 2
    This being a brand-new site, the help center is still very sketchy because the rules are not set in stone yet. You can play a role in shaping the direction of the site by posting on Vi and Vim Meta. – 200_success Feb 20 '15 at 20:54

Browse other questions tagged or ask your own question.