Live data from Hacker News

Vim: Takeaways from One Year of Typing

sankho.github.io

21–30 of 98 posts

Re: Vim: Takeaways from One Year of Typing

#21
I agree with everything here except the idea that you shouldn't start with MacVIM. The main issue with new users getting into modal editors is the learning curve. If you can reduce the upfront difficulty by accepting OS-specific hotkeys and mouse events, why not?

Using VIM saves you time and a smart user will search out the ways the editor can help her, but there's no value in making the user go cold turkey.

Re: Vim: Takeaways from One Year of Typing

#22

For what it's worth, the author (sankho) mentions that he uses other editors for project-wide find and replace. This can be done in vim too (although I do not --- I'll return to this). You can check out the typically great vimcasts post on this: http://vimcasts.org/episodes/project-wide-find-and-replace/ For whatever reason, I find it easier to use commandline tools to do large search and replaces. I do embrace the v…

Here's my find-and-replace command, copied from some StackOverflow answer at some point in time: https://github.com/tubbo/home/blob/master/bin/repl

It uses Ag to search over each file and Perl to perform the necessary regex. It also creates *.bak backup files in case I replaced something that wasn't supposed to be replaced, but will remove those backup files if I'm in a Git repo (because I basically had to `git clean -f` every time after using this command...so I just wrote it into the command)

Re: Vim: Takeaways from One Year of Typing

#23
post #9

The great advantage of vim is that it forces you to use only the keyboard. No mouse at all! Mouse is slow. Keyboard is fast (once you get used to it).

I've wanting to move keyboard keys onto the mouse for decades. The closest I've got is with a Razer Naga Epic - the gaming mouse with the 12 thumb buttons:

  F5    Up    F2
  Left  Down  Right
  Tab   Del   Backspace
  Enter Space ESC
This speeds me up greatly. Especially in mixed GUI/keyboard input situations.

Re: Vim: Takeaways from One Year of Typing

#25

vim overhyped as an editor? It might be overhyped as a programming tool (you won't write 2x the same amount of lines in a day; you will not be 5x more productive), but as an editor, it deserves every single bit of hype that it has. No other editor stands next to vim. A lot of people dislike editors. It's fine. There are a million tools out there that help people become more productive programmers. You might enjoy Int…

I've switched from vim to kakoune some time ago. vim does have the advantage of a bigger ecosystem, but I do believe it is possible to have an editor better than it.

I've taken a look at kakoune. It's very similar to vim, isn't it? When I say vim, I also mean neovim, which currently is already superior to vim in a lot of ways.

Re: Vim: Takeaways from One Year of Typing

#26

The thing about Vim is that I cannot imagine creating it and thinking, "This will be much faster and easier than a mouse eventually". But, I also wouldn't think that I could learn how to type fast without looking at the keys if I just stumbled across a keyboard, but both are undoubtedly true. Like anything physical, it requires practice and muscle memory. Would you rather go back to looking at every single key to typ…

Absolutely - and you can say the same thing about a piano. A flexible, open-ended interface, combined with learning and practice, will vastly outperform any attempt to replace effort by an "intuitive" set of controls.

Re: Vim: Takeaways from One Year of Typing

#27

Earlier quoted context omitted.

Exactly. Recently, I switched to i3[0] and Vimium[1] and it's just wonderful. Now I'm way faster than before and hardly ever use the mouse. [0] https://i3wm.org [1] https://chrome.google.com/webstore/detail/vimium/dbepggeogba...

As a slight aside, how did you choose i3 over the other tiling window managers? I chose xmonad at one time, but it was more or less by chance --- someone else used it that I knew, and so I tried it. But I haven't actually compared any.

I've read the name a few times and people seemed to be happy with it, so I gave it a try. I liked it immediately, not least because of the simple but powerful customization. To be honest, I haven't tried any other TWMs yet, but I will soon.

Re: Vim: Takeaways from One Year of Typing

#28

The thing about Vim is that I cannot imagine creating it and thinking, "This will be much faster and easier than a mouse eventually". But, I also wouldn't think that I could learn how to type fast without looking at the keys if I just stumbled across a keyboard, but both are undoubtedly true. Like anything physical, it requires practice and muscle memory. Would you rather go back to looking at every single key to typ…

Doesn't vim (or similar schemas) predate the mouse?

Yes, it does. Well, actually vi, which is its predecessor.

Re: Vim: Takeaways from One Year of Typing

#29
post #8

now you should try Spacemacs

+1 for Spacemacs. Former vim user, now using smacemacs for past few months.

I found a number of things just work way better in emacs than in vim. For example, web-mode was a revelation for me. I could never get vim to get syntax right in mixed HTML-JS files.

Ability to edit very large files with ease was another one in favour of emacs. Vim would freeze up for a seconds or two while saving even half a megabyte file.

helm and family blew my mind away.

Another win spacemacs is it does not hide default emacs functionality. All default emacs keyboard shortcuts would always work, so learning vanilla emacs is still helpful.

Once I got to know spacemacs shortcut layout, it was surprisingly intutive.

(YMMV)

Re: Vim: Takeaways from One Year of Typing

#30
I don't actually program all that much, but I find that for text editing, vim (or even vi) is hard to beat.

As a sysadmin, I appreciate the fact that some form of vi exists on any vaguely unix-like machine I log into. Even without a .vimrc, the basic commands for line editing and searching work and they match with tools like less (or does less match vi?) and using vi has become second nature over time because it's everywhere and it tends to be the default (I hate it when someone makes nano the default $EDITOR so that eg. sudoedit doesn't do the right thing)

I wish Windows servers shipped with vi, too. A decent text editor is the one thing I consistently find myself missing. Notepad most definitely does not count.

Post reply on HN