Releases: Matt-A-Bennett/vim-surround-funk
v2.2.1
v2.2.0
Add a normal mode command to specify which (
, {
, [
to use to define functions.
Add a vimrc option to specify:
- which
(
,{
,[
to use by default. - whether the above normal mode command should be persistent, or a be one-off effect.
Allow user to override any global settings for different filetypes.
v2.1.3
Bug Fix:
When a function call was multiline, and had no inner function call as an argument, then using dsf
would paste the new results (i.e. the surrounding function call removed) to the first and second lines (instead of the first and last lines).
v2.1.2
Bug fix:
gS command worked incorrectly when wrapping a function call around a text object that went to the end of the line (unless virtualedit was set)
v2.1.1
Bug Fix:
Fail gracefully when the gs operator is used, but a function call has not been previously deleted/yanked in the first place (hence the gs operator is not valid).
v2.1.0
Add the gS operator, which allows you to grip a text object or motion with a function specified on the command line. The cursor is left in insert mode just before the last parenthesis in case you want to start adding trailing arguments.
v2.0.1
I'm changing the name of this plugin to 'vim-surround-funk' to be more consistent with tpope's vim-surround plugin, by which this plugin is inspired.
v2.0.0
Add full text object support:
Two new text objects for entire functions and just their names (accessible from anywhere on the function).
New operator pending command for gripping any text object (including function text objects, see above) with a previously deleted/yanked function.