又找到一个比较权威的最新版 argtextobj.vim
https://github.com/blueyed/argtextobj.vim
blueyed fork的,比之前那个更新更权威,改了更多bug
这个项目分成了 autoload 和 plugin了,我还是喜欢弄成单文件,所以合并了一下,需要单文件的自取:
https://github.com/skywind3000/vim/blob/master/site/argtextobj.vim
下面是更新内容:
2014-06-02 o [master] ENH: Support repeat of operator-pending text objects.
2014-05-07 M─┐ Merge pull request #2 from UnrealQuester/master
2014-05-03 │ o Fixing empty function arguments bug
2014-05-03 │ o Fixed bug with trailing whitespace
2014-05-03 │ o Removed debug
2014-05-03 │ o Return to old position when no matching parenthesis is found
2014-05-02 │ o Trying to fix empty argument list bug
2014-05-02 │ o Removed now unused option argument_mapping
2014-04-30 o─┘ Fixed bug in multiline arguments
2014-04-30 o Removed debug
2014-04-30 M─┐ Merge pull request #1 from inkarkat/master
2014-04-29 │ o Use proper syntax for help tag definitions.
2014-04-29 │ o Use canonical <Plug>(argtextobj...) mappings to allow remapping.
2014-04-29 o─┘ Added docs
2014-03-26 o Put most of the stuff in autoload
2014-03-26 o Made mapping configurable
2014-03-25 o Added include guard again
2012-01-20 o FIX: Don't define text objects for select mode.
2011-11-15 o ENH: Support whitespace other than <Space> (i.e. <Tab>).
2011-11-15 o ENH: Support arguments spread over multiple lines.
2011-11-15 o FIX: Prevent yank message when args are distributed over multi-lines.
2011-11-15 o ENH: Beep when no or too few arguments found.
2011-11-15 o ENH: Support [count] to select multiple arguments.
2011-11-15 o ENH: Avoid clobbering the regtype, selection and clipboard registers.
2011-11-15 o ENH: Avoid modification of buffer in s:GetOutOfDoubleQuote().
2011-11-15 o ENH: Handle selection=exclusive.
2011-11-15 o FIX: Use :normal! everywhere to avoid interference with custom mappings.