Skip to content

syngan/vim-textobj-postexpr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published