vim-textobj-postexpr

Build Status

Required:

mapping:

  • <Plug>(textobj-postexpr-a)
  • <Plug>(textobj-postexpr-i)

Examples

  • 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

Customize

for LaTeX

g:textobj_postexpr.tex = {
\	'keyword_expr' : '\\\k\+',
\	'block' : {'{' : '}', '[' : ']'}
\}

Blog in Japanese