Closed geoffharcourt closed 8 years ago
Hey @geoffharcourt, thanks for the update! This all makes sense, and frankly I'm surprised I wrote any of this using :normal
and not :normal!
as I'm aware what you're describing. I'm going to run with this locally just to confirm, but I assume this will be fine and I'll merge in a few days.
@christoomey no problem.
I've been using Google's Vim styleguide recently. There's some resistance to conforming on a styleguide at tb due to how little VimL we write (vs. other languages), but I've found a number of practices in there that have been extremely helpful when editing VimL.
Hey @geoffharcourt, thanks again for this update!
Executing normal mode commands with
:normal
will take into account a user's remapping, and might not perform the expected action. This change updates all instances of:normal
in the plugin to use:normal!
, which will execute the normal mode commands using the default, expected mappings supplied with Vim. This change fixes #13, whereConvertSelectionToLink
was selecting more than the desired search term due to user remapping ofgv
.Fix #13.