简体   繁体   中英

Vim remap “Inside” and “Around”

I use colemak as my keyboard layout and have mapped insert to s and append to v , and have a similar situation with my a key. Using anything like dsc instead of the common dic or cap For example does not work with the setup. How can i also remap the 'inside' and 'around' features of a and i for when they are ready to be used?

What you want is operator pending mappings

Try the following in nvim

:onoremap s i
:onoremap v a

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM