News for hackers. Stuff that matters.
Re:Vim's 25th anniversary and the release of Vim 8 by lytedev on Thursday February 09, 2017 @11:43AM (#13608268)
Why not use "jk" or "jj"?
Re:Vim's 25th anniversary and the release of Vim 8 by jcl on Thursday February 09, 2017 @02:23PM (#13609982)
These can be convenient if you are only entering text manually. But remapping regular -- albeit rare -- text sequences can have unexpected results when pasting copied content into insert mode in a terminal window. I've been bitten by this a couple times when pasting base64-encoded data.
Re:Vim's 25th anniversary and the release of Vim 8 by nick_g on Thursday February 09, 2017 @02:33PM (#13610087)
This has caught me as well, but it can be avoided by using `:set paste!` to toggle paste mode before pasting. This isn't something I need to worry about often enough but you can map that command if pasting external content is something you do often.
Re:Vim's 25th anniversary and the release of Vim 8 by marklgr on Friday February 10, 2017 @06:22AM (#13614626)
Most terminals support bracketed paste, and vim can automatically toggle pastemode based on the special sequences.

Eg. https://github.com/ConradIrwin/vim-bracketed-paste

Re:Vim's 25th anniversary and the release of Vim 8 by lunchladydoris on Thursday February 09, 2017 @12:25PM (#13608764)
Discovering this really changed Vim for me. That and remapping j and k to move over visual lines instead of logical lines.
Re:Vim's 25th anniversary and the release of Vim 8 by eqyiel on Thursday February 09, 2017 @03:51PM (#13610835)
What if you want to write "Dijkstra"?
Re:Vim's 25th anniversary and the release of Vim 8 by WildUtah on Thursday February 09, 2017 @04:54PM (#13611376)
That's why i use kj.

(Also: quaternions)

Re:Vim's 25th anniversary and the release of Vim 8 by farresito on Thursday February 09, 2017 @07:01PM (#13612180)
Then you wait one second after pressing j (until the timeout is over) and press k.
Re:Vim's 25th anniversary and the release of Vim 8 by chillee on Thursday February 09, 2017 @08:14PM (#13612539)
To be quite honest, that sounds terrible.
Re:Vim's 25th anniversary and the release of Vim 8 by farresito on Thursday February 09, 2017 @08:59PM (#13612713)
I don't think it's bad at all. I very rarely have to write 'jk', and using that combination saves me from having to either reach the escape key or having to use c-[. If the price I have to pay is waiting 0.5s (which is what I have the timeout configured to) once in a while, then I consider this a great tradeoff.
Re:Vim's 25th anniversary and the release of Vim 8 by minitech on Friday February 10, 2017 @01:04PM (#13617446)
Caps Lock is one key, easier to type, and even more rarely used, though. I highly recommend it. =)
Re:Vim's 25th anniversary and the release of Vim 8 by chillee on Friday February 24, 2017 @04:18AM (#13722216)
That's what I use too :). I also highly recommend it. I would strongly recommend binding either escape or ctrl to caps lock on every keyboard.
Re:Vim's 25th anniversary and the release of Vim 8 by marklgr on Friday February 10, 2017 @06:25AM (#13614638)
Or you press `<C-v>` before the `j`.
Re:Vim's 25th anniversary and the release of Vim 8 by tommorris on Thursday February 09, 2017 @04:24PM (#13611131)
Then you need to switch to Dutch mode...
Re:Vim's 25th anniversary and the release of Vim 8 by Rusky on Thursday February 09, 2017 @02:01PM (#13609771)
Personally that slows down normal usage of j too much for me.
Re:Vim's 25th anniversary and the release of Vim 8 by ngokevin on Friday February 10, 2017 @01:49AM (#13613703)
It doesn't have an effect if you type a single `j`.
Re:Vim's 25th anniversary and the release of Vim 8 by flukus on Thursday February 09, 2017 @08:02PM (#13612500)
I've been using <leader><space> lately, with space as the leader key so just <space><space> really, it's worked well so far.
Re:Vim's 25th anniversary and the release of Vim 8 by WildUtah on Thursday February 09, 2017 @04:54PM (#13611367)

    :ino kj <Esc>
    :ino <Esc> <Nop>
Try it for a week; you'll love it.