summaryrefslogtreecommitdiff
path: root/src/debug.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-19 14:19:41 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-19 14:19:41 +0100
commitc636a291bdee0d57dbee074bd735bdc45306edab (patch)
treeb576abddd4790fcbb7e5c058fdb184acdd5f61f3 /src/debug.cc
parent22c545884fc9707720db4f7a6b69fbb027ad7699 (diff)
Add a regex filter
regex filter takes three arguments: <line_match> <insert_match> <replacement> <line_match> is checked from begining of line to point of insertion <insert_match> is checked on the inserted text (usually only one char) <replacement> is used to replace the inserted text, it can use $1..9 for captures in line_match, and $c to specify the cursor position. for example, ':addfilter regex .* \( ($c)' makes inserting an opening parens insert the closing one as well, keeping the insertion cursor in the right spot.
Diffstat (limited to 'src/debug.cc')
0 files changed, 0 insertions, 0 deletions