Required:
- kana/vim-textobj-user
mapping:
<Plug>(textobj-postexpr-a)
<Plug>(textobj-postexpr-i)
omap av <Plug>(textobj-postexpr-a)
omap iv <Plug>(textobj-postexpr-i)
Let █ be the position of the cursor.
tako()
ho█ge[aa[bb](1, 2, 3)]()
(1)foo
if do div
then
tako()
█
(1)foo
if do dav
then
tako()
█foo
When
tako()
hoge[a█a[bb](1, 2, 3)]()
(1)foo
if do div
then
tako()
hoge[█]()
(1)foo
if do dav
then
tako()
hoge[█]()
(1)foo
for LaTeX
g:textobj_postexpr.tex = {
\ 'keyword_expr' : '\\\k\+',
\ 'block' : {'{' : '}', '[' : ']'}
\}