Skip to content

machakann/vim-operator-insert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-operator-insert

This is Vim plugin of custom operator for moving head(or tail) of textobjects and change insert mode.

Requirements

operator-user

Usage

This plugin define no default key mappings.

So you need to define key mappings. Look at Settings.

You can use <Plug>(operator-insert-i) to move head of textobjects and change insert mode. And you can use <Plug>(operator-insert-a) to move tail of textobjects and change insert mode.

Settings

You need map key to use this plugin.

This is example settings.

nmap <Leader>i  <Plug>(operator-insert-i)
nmap <Leader>a  <Plug>(operator-insert-a)

Screenshot

Following screenshot is example for insert tail of word to type <Leader>ae, and for insert head of word to type <Leader>ib.

screenshot1

Following screenshot is example for insert tail of inner parentheses to type <Leader>aib, and for insert head of inner parentheses to type <Leader>iib.

screenshot2

License

This plugin is distributed under MIT License.

About

move head(or tail) of textobjects and change insert mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%