Am 22.10.2012 09:55 und 09:59, schrieb Axel Bender:
Is there any possibility to make dib (or dab for that matter) ignore
escaped backslashes, e.g.
Current behavior:
"( \(a[cursor_here]bc) )" -> dib -> "() )"
Desired behavior:
"( \(a[cursor_here]bc) )" -> dib -> "( () )"
Addendum: I'm not looking for a macro/function but for a setting.
:h cpo-M
,----
| M When excluded, "%" matching will take backslashes into
| account. Thus in "( \( )" and "\( ( \)" the outer
| parenthesis match. When included "%" ignores
| backslashes, which is Vi compatible.
`----
(excluded per default)
:set cpo+=M
What happens:
'( \(a[cursor_here]bc) )' -> dib -> '()'
So the `M'-flag also influences `ib' ... in some way.
Looks buggy, because backslashes are still not ignored.
--
Andy
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php