Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

First I do

:inoremap <BS> x

and then enter insert mode. Then switch to Hangul input in ibus. Now I try to type

and it shows up as

ㅁx마

I guess that makes sense, right? ibus must have generated a backspace to get rid of the and replace it with . But it means that I can't remap backspace without interfering.

Is there something I can do to get around this?

share|improve this question

1 Answer 1

I don't know about ibus, but you could try this plugin, referenced on a similar question on vim_use.


Maybe you could use inoremap <BS> <c-r>=Backspace()<CR> and create a Backspace() function to somehow detect the situation where the map expansion should be avoided, similar to Vim Tip 68 - "Checking for bad mappings". Maybe you could check for the sequence inserted by ibus using feedkeys().

share|improve this answer
    
Thank you for the suggestion, but this is an issue that occurs during insert mode with hangul mode on (which I need it to be) so I don't think this will solve my problem. –  Owen Feb 11 at 17:18
    
I see -- I've added another suggestion. –  mMontu Feb 11 at 18:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.