https://github.com/todesking/vim-textobj-methodcall
https://github.com/todesking/vim-textobj-methodcall
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/todesking/vim-textobj-methodcall
- Owner: todesking
- License: mit
- Created: 2015-02-04T11:50:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-04T13:12:38.000Z (over 11 years ago)
- Last Synced: 2026-01-17T16:50:13.773Z (5 months ago)
- Language: VimL
- Size: 125 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-textobj-methodcall
```
Map[Integer]
foo(1, 2, 3)
~~ic~~~
~~~~~ac~~~~~
```
## Requirements
* [vim-textobj-user](https://github.com/kana/vim-textobj-user)
* [vim-operator-surround](https://github.com/rhysd/vim-operator-surround)(optional)
## Settings
```vim
" Optional: override keys. default: 'ac', 'ic'
let g:textobj#methodcall#select_a = 'ac'
let g:textobj#methodcall#select_i = 'ic'
" Optional: set word pattern for specific filetype
call textobj#methodcall#register_word_pattern('r', '\v[a-zA-Z0-9_.]+')
" Required(if operator-surround used): operator-surround settings
let g:operator#surround#blocks =
\ textobj#methodcall#operator_surround_blocks(deepcopy(g:operator#surround#default_blocks), 'c')
```
## Related plugins
* [argtextobj.vim](http://www.vim.org/scripts/script.php?script_id=2699)
* textobj for argument