Closed majutsushi closed 11 years ago
Thank you for the patch. I've merged it.
By the way, several filetype plugins in $VIMRUNTIME
overrides [[
and others to move the cursor by a function (or another kind of object). So, if I remembered correctly, I chose :normal
to use [[
and ][
which might be customized by other filetype plugins.
But the decision is wrong, because the default filetype plugin for C language doesn't override [[
and others. And this plugin expects the standard behavior of [[
and ][
. It doesn't make sense to use :normal
here.
That's a good point, I hadn't thought of that. But as you said the C ftplugin doesn't do that, and it didn't work for me since I changed the mappings in my vimrc.
Some of the
normal
commands in the C textobj functions didn't use!
and thus would break if the user had remapped them. This patch fixes that.