ardagnir / pterosaur

All firefox text fields are vim.
GNU Affero General Public License v3.0
772 stars 30 forks source link

Arrow Keys Break After Turning Off Fullvim #17

Closed noctuid closed 9 years ago

noctuid commented 10 years ago

EDIT: The fact that I had mapped the arrows keys to in insert mode seems to be entirely unrelated to the whatever the reason is that they stop working after toggling fullvim on then off. I apologize.

ardagnir commented 10 years ago

Are you setting the imaps through pterosaur/vim (it should should VIM_COMMAND when you're typing it) or through pentadactyl?

noctuid commented 10 years ago

I tested it with an imap in my ~/.vimrc

Edit: Okay, it seems it only happens if I have something mapped to : inoremap <left> <nop> And this doesn't happen for letter keys. So it only happens for specific imap commands. Sorry, this was very badly tested on my part. I just assumed that it had to do with the imaps because I just put them there and hadn't noticed this before. Even if I remove them from my vimrc, the arrow keys stop working after using fullvim. Nothing else seems to be affected, and this happens for all text boxes I've tried.

ardagnir commented 10 years ago

Should be fixed now.

noctuid commented 9 years ago

They still stop working after turning fullvim on then off. I've updated to the new version of the plugin and restarted firefox. Do I need to do something else?

ardagnir commented 9 years ago

Type :help pterosaur-plugin in pentadactyl. Are you running version 0.8.3?

Everything should work fine when you update and restart, but if not, you can force firefox not to use the cache by changing the name of the plugin from pterosaur.js to pterosaur2.js

noctuid commented 9 years ago

I had to rename the plugin for firefox to use the new version, but :help pterosaur-plugin still lists it as version 0.8.2 for some reason (even though pterosaur.js it's listed as 0.8.3). The problem is fixed now though. Thank you.