tommcdo / vim-exchange

Easy text exchange operator for Vim
MIT License
756 stars 23 forks source link

Default mappings causes a surprise when trying to change visual mode text to insert an 'x' #14

Closed svermeulen closed 10 years ago

svermeulen commented 10 years ago

I often select some text in visual mode, then hit 'c' to change it, then start typing. The default mapping remaps 'cx' in visual mode. So hitting 'c' in visual mode now causes a delay, which is ok, but it also means that you can't change visually selected text to 'x', since it would invoke vim-exchange

tommcdo commented 10 years ago

I wish I had considered the effect the visual cx mapping had on the c operator :(

Anyway, there are a few ways around this, mentioned in the troubleshooting section of the Wiki. In short, you can either remap the visual operator or shorten 'timeoutlen'. Alternatively, if you do wait past the timeout, you should be able to insert an x. (But ain't nobody got time for that.)

svermeulen commented 10 years ago

Oh, didn't see that page. Yeah, I've remapped it to something else, but I thought I'd report it in case you weren't already aware.