News for hackers. Stuff that matters.
Re:Vim ported to iOS by tambourine_man on Thursday January 19, 2012 @06:15PM (#3487387)
What's the biggest advantage over SSHing to your server? Is the interface optimized?

I mean, you're almost never offline these days, so local storage can't be it, right?

I suggest mapping 'jj' to ESC rather than '\'

Re:Vim ported to iOS by edanm on Friday January 20, 2012 @01:34AM (#3488605)
Small tip - I use "jk" instead of "jj" for ESC.

I always thought the difference was personal preference, but there is actually 1 good reason to use "jk". If you get used to pressing "jk" all the time, you'll probably end up using it in Normal mode as well as insert mode. "jj" will move up 2 rows in Normal mode, while "jk" doesn't do anything. Therefore you can use "jk" as a reflex every time you get to the keyboard, and it won't screw you up.

Re:Vim ported to iOS by ulisesrmzroche on Friday January 20, 2012 @10:23AM (#3489726)
ctrl-c, to avoid any of that stuff. 'jk' will move you one row down, and one row up.
Re:Vim ported to iOS by edanm on Friday January 20, 2012 @11:19AM (#3489968)
Yes, except ctrl-c moves you off home row, which I wanted to avoid.

Also, technically, ctrl-c is not the same as escape - it also sends a cancel signal. I actually have no idea what the practical difference is, I just know that some commands treat it differently.

Re:Vim ported to iOS by ulisesrmzroche on Friday January 20, 2012 @12:46PM (#3490335)
It doesn't check for abbreviations and doesn't trigger InsertLeave, which essentially means that any pending command is aborted, but you're totally right about not leaving the home row.

I just right now remapped caps-lock to control and use CTRL-[ to escape instead.

Re:Vim ported to iOS by sedm0784 on Friday January 20, 2012 @11:01AM (#3489887)
There's no "ctrl" key on the iOS keyboard, though.
Re:Vim ported to iOS by hack_edu on Thursday January 19, 2012 @06:24PM (#3487437)
Latency. And for those who aren't 'almost always online.'
Re:Vim ported to iOS by flogic on Thursday January 19, 2012 @08:45PM (#3487894)
Even if you're online, the connection may have much more latency than you want to deal with. Depending on what you're doing a split second of latency can mean a lot.
Re:Vim ported to iOS by martinemde on Thursday January 19, 2012 @09:11PM (#3487959)
Unfortunately, imap jj <Esc> in the .vimrc doesn't seem to work. :(
Re:Vim ported to iOS by astr on Thursday January 19, 2012 @11:18PM (#3488295)
I did `:imap al <Esc>`. So then you can simultaneously press A and L to leave insert mode. Very easy on the iPad.
Re:Vim ported to iOS by Ecco on Friday January 20, 2012 @02:50AM (#3488747)
Oh, that's super smart! I might consider adding this as the default in the next release. Thanks!!!