Skip to content

Releases: Matt-A-Bennett/vim-surround-funk

v2.2.1

13 Feb 22:54
Compare
Choose a tag to compare

Wrap all operation functions in try except statement to print a single clean error instead of stack of them

v2.2.0

31 Jan 07:38
36583d4
Compare
Choose a tag to compare

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

30 Jan 22:02
Compare
Choose a tag to compare

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

29 Jan 21:52
Compare
Choose a tag to compare

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

24 Jan 21:19
Compare
Choose a tag to compare

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

24 Jan 20:03
6adb78a
Compare
Choose a tag to compare

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

21 Jan 13:33
Compare
Choose a tag to compare

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

20 Jan 14:59
Compare
Choose a tag to compare

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.