From 666f03d346c79c61928412b761cdc27027c8ef58 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 8 Mar 2018 22:41:30 -0500 Subject: improve the configuration interface --- plugin/textobj.vim | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/plugin/textobj.vim b/plugin/textobj.vim index bb620fe..55eb1ff 100644 --- a/plugin/textobj.vim +++ b/plugin/textobj.vim @@ -62,14 +62,15 @@ endfunction " }}} " Text object definitions {{{ " arbitrary paired symbols (/ for regex, etc) {{{ -function Textobj_paired(inner, count, char) +function Textobj_paired(inner, count, ...) + let char = a:1 let pos = getpos('.') let line = strpart(getline(pos[1]), 0, pos[2]) let lines = getline(1, pos[1] - 1) + [line] let linenum = pos[1] for line in reverse(lines) - let objstart = match(line, '.*\zs\\\@