ViEmu Blog

A blog about all things ViEmu
the one true editor
since 2005!

ViEmu/VS and /SQL 2.2.2, with better i’/a’/i”/a” motions

July 16th, 2008

In the search for the perfect 2.2 build before the official announcement, I’ve built version 2.2.2 of both ViEmu/VS and ViEmu/SQL:

They’ll upgrade whatever ViEmu versions you have installed. They incorporate a new implementation of the i’/a’/i”/a” vim7-style text-object string motions, closer to vim’s behavior: they only work on the current line, when used on a quote they use heuristics to determine whether this is a starting or ending quote, and they ignore quote characters in strings which are escaped with a backslash (\” or \’).

One other thing I want to address in ViEmu/VS before the official announcement is a problem with the RETURN key in certain cases (see, although it’s probably due to some other 3rd party add-in as I can’t repro it.

And I also want to address some issues with ViEmu/Word&Outlook yank and paste, which sometimes confuses character-wise and line-wise pastes, before I release an unofficial 1.5 preview including proper i’/a’/i”/a” support (harder than in ViEmu/VS and /SQL, due to smart-quotes). Hopefully, all of this can be clarified this week, and an official release will happen next week!

And as always, I’ll be grateful for any feedback about these builds!

and ViEmu/SQL 2.2 also ready!

July 10th, 2008

Download here:

No need to uninstall your current version. Main feature is i’/a’/i”/a” motions, also gt/gT, gp/gP, and all 2.1.x improvements. Thanks for any feedback!

ViEmu/VS 2.2 up for download!

July 10th, 2008

In the past few weeks, I’ve been addressing some long-standing ViEmu issues: minor glitches, compatibility with other 3rd party add-ins in certain circumstances, simple new features, etc… Rather than constrain this to the exposure of a minor revision (very small), I decided to add some interesting new feature and release version 2.2. I have already finished ViEmu/VS 2.2 and a ViEmu/SQL 2.2 will follow shortly. I’ve been testing it myself for a few days, and also sent it out privately to a few other people, and before announcing it officially to the whole mailing list, I thought I’d offer it from the blog and the ViEmu forums for a few more days to be sure everything’s fine.

Here is the link to download it:

You don’t need to uninstall any previous installation, this installer will automatically upgrade it. By the way, I have also revamped my internal installer-build-system, and now all minor revisions will also feature automatic upgrades. Manual uninstalls are a thing of the past now!

The main new feature in 2.2 is vim-7-style i’/a’/i”/a” text-object motions, which allow fast access to single- and double-quote strings. This was an oft-requested feature, so hopefully it will be a welcome addition to ViEmu.

While this is being tested, I plan to build a ViEmu/SQL 2.2, and address a few outstanding ViEmu/Word&Outlook issues. Probably there will also be a ViEmu/W&O 1.x release soon, too, incorporating the most recent improvements.

As always, but more so with this release, I will be grateful for any feedback you can offer.

ViEmu/VS 2.1.27: Several Fixes and gt/gT Implemented

June 24th, 2008

I’ve spent several days addressing pending support issues from the forums and customer requests, and I’ve consolidated them in this new release, together with the feature to go to next/previous tab with gt and gT. This is a vim 7 feature that works with tabs in vim, but since VS implements a model where buffers and tabs are basically the same, in ViEmu they do the same as :bn[ext] and :bp[rev].

Here is the detailed list of issues this version addresses:

You can download the installer for the new version here:

You need to manually uninstall the previous version before installing this one.

I’m planning to implement some more interesting feature and release 2.2 for both VS and SQL in the next few days. I’ll take the chance to send a mail out to all customers and subscribers after this, I haven’t done so in many months, and for example I haven’t notified customers about this blog by email at all. I guess I take my non-spammer policy too seriously some times.

Let me know about anything else that comes up, either through the comments here or on the forums.

ViEmu/VS 2.1.26 fixing a freeze (‘undo’ on an running ASP/VB app in VS2008)

June 10th, 2008

The title says it all. The bug was reported here: When doing ‘undo’ with ViEmu on a VB file in an ASP.NET/VB.NET web app under VS2008, Visual Studio would freeze. This was due to the ‘Edit.Undo’ calls ViEmu does failing silently, and ViEmu not realizing it. ViEmu does several calls to this VS function, in order to undo the last complete action, and it would get stuck in an infinite loop due to this reason. I’ve now made it bail out if any of the calls fails.

Here is the link to download it:

Be sure to manually uninstall the previous version from the control panel before installing this one.

I will make this the officila latest build downloaded from the main download links after it’s been out there a bit longer.

ViEmu/VS 2.1.25 fixing crash with Visual Assist

May 28th, 2008

I built and released ViEmu/VS 2.1.25 a few days ago:

You’ll need to manually uninstall the previous version of ViEmu before installing this one.

As described on this ViEmu forum thread, ViEmu could crash VS under certain circumstances, after pressing <Ctrl-]> to jump to the definition of the symbol under ther cursor, due to Visual Assist delaying the interception of the target file and ViEmu assuming interception would be instant (as it is when Visual Assist isn’t present).

ViEmu/VS 2.1.24 with proper wrapscan and proper ‘<,'> marks with $

March 15th, 2008

I have just built and uploaded ViEmu for Visual Studio 2.1.24. It fixes two problems:

  • Just reported yesterday, doing Vj$:'<,’>s/xyz/uvw/g would complain about ‘mark not set’. The reason was that the ‘$’ motion tried to set the ‘> end-of-visual-region marker in a position with column = infinite (that’s why doing $ and moving up and down goes to the last column of each line), and this type of marker didn’t work well. It’s now fixed.
  • Pending from a long time ago, a ‘/’ search from the last line of a file if this was empty would not find anything even if ‘wrapscan’ is set. This was a bug in the wrapping logic of the regular expression finder. It’s been fixed too.

You can download it here:

Remember you need to manually uninstall the previous version of ViEmu before installing this one.

Let me know how it works for you.

ViEmu/VS 2.1.23 addressing incompatibility with F# language with Visual Assist

March 14th, 2008

I have just built & uploaded ViEmu/VS 2.1.23, which fixes some problems with F# language files in the presence of Visual Assist. Yes, the VS ecosystem can be quite complex at times, but I always try to address incompatibilities as soon as possible.

You can download it from here:

Be sure to manually uninstall the previous version before installing this one. I have also promoted this build to the ‘official’ build downloaded from the main download page, so you might already have it if you downloaded it from there.

ViEmu/VS 2.1.22

February 24th, 2008

A few days ago I built & uploaded ViEmu for Visual Studio 2.1.22. The two improvements are:

  • Support for the localized Korean version of Visual Studio (automatic keybinding removal wouldn’t work)
  • A :ve[rsion] command that shows the current ViEmu version in the command line

As always, you can download it from the relevant forum thread at the top of the forums:

I’m traveling and thus out of the office all of next week, so support will probably be a bit worse/slower than usual. Hopefully, I’ll have a quite March afterwards and I’ll be able to address a lot of pending issues.

New ViEmu/VS release with improved Resharper compatibility

January 6th, 2008

A few days ago, I received some feedback that ViEmu/VS’s compatibility mechanisms for Resharper didn’t work fine with Resharper 3.1. Off I went and investigated it. It turns out that the latest version uses different internal names for the commands ViEmu intercepts, and thus I had to update the interception code to recognize the new names. Don’t worry, this is in addition to the old names, so now ViEmu/VS is equally compatible with all of them. Here is the new build, 2.1.21:

You need to manually uninstall the previous version before installing this one.

What the compatibility code does it it detects when the Resharper ‘Rename’ command has been issued, and if this is an ‘inline’ rename instead of a dialog-based one (which, afaik, only happens with local variable renames), it auto-enters insert mode. This works nicely, except for two glitches which are pretty hard to solve:

  • If you issue the ‘Rename’ command by first using the Resharper ‘Refactor This’ command, which pops up a small command list, ViEmu can’t intercept this. It’s not a VS command, but some internal Resharper mechanism, and there is no way to intercept it that I know of (I did ask the Resharper devs about this, and I didn’t get any usable suggestion)
  • Also, when renaming inline in insert mode, Resharper is kind of ‘king’, so if you press Esc, it will cancel the rename. You need to press Enter first to accept it, and then Esc to exit insert mode. It would be good to accept it with Esc, but it’s beyond ViEmu’s reach (it’s Resharper handling the Esc keypress)

All in all, it ViEmu should work a little bit better with Resharper now. Drop me a line if there are more glitches that need some care, or if you have any suggestions to the above issues.

BTW, for those of you reading this through an RSS reader, be sure to visit the blog to enjoy the new look, as I have styled it according to the rest of the ViEmu site and integrated it properly in the navigation bar, etc… now looks so much nicer with all the pages, the forums, the blog, etc… all styled and integrated properly!


ViEmu: vi/vim emulation for Visual Studio, Word, Outlook and SQL Server:
See where ViEmu customers are around the world:
Map of ViEmu customers around the world
Hear what others are saying about ViEmu:
ViEmu testimonials
Learn vi/vim easily with this cheat-sheet and tutorial:
Vi/vim Cheat Sheet and Tutorial
Read why vi/vim editing is the killerest:
Why vi/vim editing?
Discover ViEmu's sister product, Codekana:
Codekana outliner and syntax highlighter