Live data from Hacker News

Interactive Vim tutorial

openvim.com

41–50 of 230 posts

Re: Interactive Vim tutorial

#41

Earlier quoted context omitted.

So... much... power.

I wonder what was the issue with arrow keys. Were there keyboards that lacked them?

Yep, but it then stayed that way because arrow keys are distant and require you to leave the home row, while hjkl are on the home row.

Vim is all about ergonomic touch-typing.

Re: Interactive Vim tutorial

#42
All these tutorials are like taking beginner French. If you want to learn French live in France. If you want to learn Vim you have to live in it. Use it for your development full time. Then over time you start to see it's power.

For me on Windows, GVim was the only sane option. Mostly because the Windows console can't fully handle syntax highlighting / italics. However it's also a good transition world. You've got all the power of Vim but quite a few of the commands you'd expect still work. I've practically never need them but it's handy to reduce the confusion / frustration

Re: Interactive Vim tutorial

#43

Earlier quoted context omitted.

So... much... power.

I wonder what was the issue with arrow keys. Were there keyboards that lacked them?

the other answer is also correct but you are correct as well! The machine vim was developed on didn't have arrow keys but used hjkl for arrows: http://www.catonmat.net/blog/why-vim-uses-hjkl-as-arrow-keys...

Re: Interactive Vim tutorial

#44
Kind of off-topic but this is probably a decent place to ask..

I've just started working on a text editor as a side project, and one of the main things I want to include is a really complete implementation of vim keybindings. So far I just have a queue of keyboard events. Basic movements seem pretty easy, but I'm worried about operator motions (d6w - delete 6 words, etc). Will I basically need to build a parser?

Any guidance or keywords I can use to research/learn how to do this would be greatly appreciated.

Re: Interactive Vim tutorial

#45
post #40

I apologize that this question is slightly tangential to the submitted post, but this seems like an ideal venue to ask: Is there a GUI interface to vim that has smooth-scrolling? I've tried Gvim, but this just seems like vim with buttons (no smooth-scroll). I've tried Sublime text with the ActualVim plugin (powered by NeoVim), but this had errors which somehow swapped document buffers on write, essentially deleting a…

Do you mean scrolling with a mouse? It might sound a bit arrogant, but there's rarely any good reason to scroll with a mouse in vim.

I would like to second this, and support you in that I don’t think it is an arrogant sentiment. Many of the efficiency gains vim gives you are the result of being able to navigate anywhere in a document or on a line with a few keystrokes. The mouse is comparatively slower, once the navigation commands are familiar.

Re: Interactive Vim tutorial

#46
Not to be that that guy but I’m gonna go ahead and plug spacemacs here. Using it in Vim (EVIL) mode I found it to be basically like vim navigationally speaking, plus they have a built completer for commands and you can even get help with commands in real time using ? And just start typing. Not a knock against Vim just something I found to be very beginner friendly

Re: Interactive Vim tutorial

#47

Now I wonder if there's a js library which makes a textfield behave like VIM... Guess I'll need to look at the source here later on to find out.

Actually I've always wanted Microsoft Office and Outlook editors to behave like vim

Re: Interactive Vim tutorial

#48

I apologize that this question is slightly tangential to the submitted post, but this seems like an ideal venue to ask: Is there a GUI interface to vim that has smooth-scrolling? I've tried Gvim, but this just seems like vim with buttons (no smooth-scroll). I've tried Sublime text with the ActualVim plugin (powered by NeoVim), but this had errors which somehow swapped document buffers on write, essentially deleting a…

I haven't used it but there is https://github.com/terryma/vim-smooth-scroll

For GUIs, I tried VimR and MacVim. Neither seems to smooth-scroll. Using the above plugin might work though?

Also, have you tried Vintageous for Sublime Text? I use it and it works well.

Re: Interactive Vim tutorial

#49
post #45
post #40

Earlier quoted context omitted.

Do you mean scrolling with a mouse? It might sound a bit arrogant, but there's rarely any good reason to scroll with a mouse in vim.

I would like to second this, and support you in that I don’t think it is an arrogant sentiment. Many of the efficiency gains vim gives you are the result of being able to navigate anywhere in a document or on a line with a few keystrokes. The mouse is comparatively slower, once the navigation commands are familiar.

I disagree, in only that good mouse support can help ease the transition and in some cases it may simply come down to user preference for some things. I don’t think personally that any text editor should be overly opinionated in how a user interacts with it; too much at least. I do agree that it is mostly more effective to not use a mouse once you know the commands

Re: Interactive Vim tutorial

#50

Obligatory link to VimGolf, a great way to learn by doing. https://vimgolf.com/

Also Vim Adventures: https://vim-adventures.com/

> Also Vim Adventures

On https://news.ycombinator.com/item?id=14658197 and its children I wrote something about the business model of VIM Adventures that you should consider before buying.

Post reply on HN