Skip to content

KosukeMizuno/vim-textobj-dein

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-textobj-dein

Text objects for toml file for dein.vim.

Requirements

usage

Keymap target
aP single plugin config
iP single plugin config
ir repository name
ah hook script with closures
  • iP and aP selects plugin config between from a [[plugins]] to the next [[plugins]].
  • It selects beyond blank lines in a hook_* block.
[[plugins]]                              ------
repo = 'KosukeMizuno/vim-textobj-dein'     |  |
lazy = 1                                   |  |
on_ft = 'toml'                             |  |
hook_add = '''                ---          |  |
" If a blank line exists,       |          |  |
                                |          |  |
" it will be ignored.         ah|        iP|  |
'''                           ---        ---  |
                                            aP|
                                         ------
[[plugins]]
repo = 'hoge/hoge'

This plugins doesn't provide ih map for hook-script without closures.
It can be available by <Plug>(textobj-precious-i) in osyo-manga/vim-precious.

tips

Following keymap is useful (tyru/open-browser.vim is required.)

augroup mytomlrc
  autocmd!
  autocmd Filetype toml nmap <buffer> gx "zyir:<C-u>OpenBrowserSearch <C-r>z<CR>
augroup ENd

License

This plugin is licensed MIT, see LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published