4 ms·
Really cool! It even supported doing things like: inoremap jj <Esc>`^ Backspace ended up triggering the browser's back action though. Other than that, thi
by bilalq 13y ago
Really cool! It even supported doing things like:
inoremap jj <Esc>`^
Backspace ended up triggering the browser's back action though. Other than that, this is really nice.
Edit:
After looking at the source, this seems to make use of emscripten to reuse Vim's existing source code. This really makes me wonder what other cool things we can bring over to the client side.
- chrismorgan 13y ago… There are still browsers that use backspace for navigation? (I'm a little surprised by this because I've seen so many complaints about it leading to data loss.)
- wging 13y agoChrome and Firefox. Probably IE too.
- shmerl 13y agoNo, at least for me (Firefox on Linux) Backspace doesn't do anything special.
- roryokane 13y agoThe “backspace = back” behavior of Firefox is only enabled by default on Windows. The behavior is controlled by the about:config setting `browser.backspace_action` (http://kb.mozillazine.org/Browser.backspace_action http://kb.mozillazine.org/Browser.backspace_action).
- Ar-Curunir 13y agoNot on Linux, where the 'previous page' action is mapped to Alt-left by default. After being initially frustrated, I got really used to Alt-Left for going back. The reasoning behind it is pretty smart too, because numerous times backspace can result in the loss of data, like when you're filling up a form and you hit backspace outside of a text box.
- lelandbatey 13y agoIndeed, I like the 'alt-left' keyboard shortcut, though I especially like it because it does the same thing in both Chrome and Firefox on both Windows and Linux! Yay for consistency!
- markburns 13y ago_I_ use backspace for navigation. What's the alternative? Use a mouse?
- sanxiyn 13y agoAlt-Left.
- roryokane 13y agoOn Mac OS X, the standard shortcut is Command-[ instead (and Command-] is Forward).
- dethstar 13y agoif you use vimium/vimperator/something else you can do shift+H to go backwards, shift+L to go forward.
- octagonal 13y agoWhich would require me to press two keys instead of one.
- 13y ago
- oneeyedpigeon 13y agoThere are still browsers that don't maintain form state across back/forward history? (I'm a little surprised by this because I thought all browsers used backspace for back)
- dlau1 13y agoI tried typing some gibberish and one shortcut that seems to be a bit broken for me is yiw diw Hmm, actually it seems all the motions I tried didn't work :-( http://vimdoc.sourceforge.net/htmldoc/motion.html#word-motions http://vimdoc.sourceforge.net/htmldoc/motion.html#word-motio...