Awesome. Thanks for sharing. I've been using vim for 6 months, but I still feel like a n00b. Looking forward to checking this out. I started my vim experience using Janus But I didn't understand how anything worked or why any of the plugins were there. That led me to starting from scratch (I forked my cofounder's dotfiles) and now I feel like I know my vim config waaaay better. If you've been using janus, I'd highly…
Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
91–100 of 143 posts
Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#92Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#93Awesome. Thanks for sharing. I've been using vim for 6 months, but I still feel like a n00b. Looking forward to checking this out. I started my vim experience using Janus But I didn't understand how anything worked or why any of the plugins were there. That led me to starting from scratch (I forked my cofounder's dotfiles) and now I feel like I know my vim config waaaay better. If you've been using janus, I'd highly…
Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#94Earlier quoted context omitted.
I haven't made the jump from arrows to hjkl. My cofounder's keyboard is arrowless, but my HHKB lite still has the arrows. Maybe in another 5 years I'll make the switch.
Using hjkl instead of the arrows is not a small difference. It's huge. Staying on the home-row vs having to move your hand over and back constantly affects your speed and accuracy in a big way. Here's an easy way to switch: never, ever use the arrow keys to move the cursor again. Done!
you just have to map your tab key to escape to get the original layout back[1].
Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#95Earlier quoted context omitted.
I haven't made the jump from arrows to hjkl. My cofounder's keyboard is arrowless, but my HHKB lite still has the arrows. Maybe in another 5 years I'll make the switch.
It's vim, so no need for a hardware mod. Here's a trick that several vim writers recommend; add this to your .vimrc: " Disable arrow keys noremap noremap noremap noremap It'll be super annoying for the first day or two, vexing for the rest of the week, then you'll just forget it's even there.
Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#96Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#97Earlier quoted context omitted.
I haven't made the jump from arrows to hjkl. My cofounder's keyboard is arrowless, but my HHKB lite still has the arrows. Maybe in another 5 years I'll make the switch.
Does this really make that much difference? I kind of view the hjkl vs arrow keys like I view the standard debate about motion commands vs. the mouse. Lots of people say they are faster using motion commands, and I know I use search motions 85% of the time. But if I want to go somewhere that's visible on the screen, the mouse is almost always quicker. And I've used vi and derivatives for 20+ years now (although obvio…
In any case, even though I don't agree with the school that says that to learn vi/vim you should forgo arrow keys and non vim (cmd + s to save, command + left arrow to go the left of the line, etc) key combinations, I think that a major point of inflection while learning the editor is choosing a trick/combination/command that you want to learn because it will increase your productivity and keep forcing it, even if it means not using the arrow keys or other combinations you're not used to, until it becomes second nature. And then do the next one and so on.
Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#98Every once in awhile the state of DRM really hammers itself home, to me. Case in point, when someone is literally giving a potentially interesting book away and I can't be arsed to take it because getting it onto my reader of choice is just too much hassle.
Yep. More irony is ironic: there's no Kindle reader for Linux, which is one of the platforms on which vi/vim are most likely to be found. Thanks for nothing, Amazon.
Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#99Earlier quoted context omitted.
I've been using it for about 17 years and I too am a noob. hjkl
I haven't made the jump from arrows to hjkl. My cofounder's keyboard is arrowless, but my HHKB lite still has the arrows. Maybe in another 5 years I'll make the switch.
inoremap
inoremap
inoremap
inoremap Re: Vim and Vi Tips: Essential Vim and Vi Editor Skills, free on Amazon today only
#100Earlier quoted context omitted.
Free as in beer, not free as in freedom.
Free as in beer if you've paid for the glass.