Monday, June 18, 2012

VIM faster Text-blocks with onoremap

I've found nice VIM feature to add mapping to operators

onoremap p i(
onoremap m i{
onoremap " i"
onoremap ' i'

Now i can press
c' d'
to use defined text-blocks

This technique didn't work with visual mode (you must press vi')

No comments: