Live data from Hacker News

Editors (Vim)

missing.csail.mit.edu

41–50 of 120 posts

Re: Editors (Vim)

#41
I love vim but I always get a feeling that I'm only using 1% of its features. It is hard to memorize all the availanle keybindings, specially if it is something that you don't use often.

Does anyone have suggestions of what worked to help learn mor Vim commands?

Re: Editors (Vim)

#42

I respect Vim, I've seen it used with impressive speed, BUT I am so used to command-s to save, that I don't feel ready to :w enter all the time. VS Code is powerful, and learning the keyboard shortcuts for that are getting better every day (command-shift-p format-selection enter).

I used to have something like

  nmap ,w :w
in my vimrc so I can only press two keys to save the file. I think the colon character (:) adds a little overhead to such a common command because one has to press shift with the colon/semicolon key (depending on the keyboard layout), and then release them to continue pressing the remaining keys. And this is if you're already in normal mode; if you're in visual/insert mode you'd have to press Esc or Ctrl+[ first. Of course, these are small details that you don't normally think about, but it does feel a little cumbersome when coming from an editor where you can just press Ctrl+s or C-x C-s (in the case of Emacs) and continue working.

In the end, vim doesn't stop you from defining key bindings to improve your workflow.

Re: Editors (Vim)

#43
post #30
post #26

Earlier quoted context omitted.

It's hard to sense how much of vi is in vim, having only ever used vim. But I've never been very happy with vim, even though I've used it for 15 years. Maybe I need to find a "vim, the good parts (aka vi)" book.

use spacemacs with vim emulation :-)

I used Vim for a number of years (I'd guess around 10), and for the last year or so I've been using Spacemacs. I think there's so much that's great about both of them, and I'll continue to use one or the other, but geez, there's so many niggling issues with both that can be offputting.

A couple of examples. In Spacemacs, the screen regularly goes blank for a while. Or if I have a file open in Spacemacs, close its window, then rename it in the OS, then reopen it in Spacemacs (by double-clicking it in Finder) it reopens it with it's old name. I'm sure there's a way to avoid this, but the fact that it happens in the first place is the issue.

Re: Editors (Vim)

#44
post #7

Earlier quoted context omitted.

As a long time vim user, I’ve tried VSCode a few times and I cannot for the life of me figure out what all the hype is about. Can anyone who is proficient with it explain the philosophy behind it and what makes it so great? This is a sincere question, not a rhetorical one.

I use vscode daily for everything, from note taking to programming. Here are my pros and cons. Pros: - Has plugins for anything.You're doing C++, just install C++ plugin and you're good to go. Want vim key bindings there's a plugin for that as well. I use a plugin that can scrape competitive coding websites and automatically create tests for a problem. - Git, snippets, etc all modern IDE features built-in. - It is al…

cons: extensions.

sharing part of OP's sentiment. in fact, i flipped the table a few weeks back because an extension downloaded a tool to my system and guess what? the installation got stuck. and guess what? my text editor hung!

all i wanted was to edit text. i didn't even ask for an extension. i was presented with one that supposedly would make my text editing experience better.

tiring...

Re: Editors (Vim)

#45

Has eye-tracking been explored for improved code editing beyond Vim? Vim does away with the hand-travel delays, but many of these ninja keystroke moves to navigate code are just what your eyes do already (but not all, such as the search function).

Looks like it has. E.g.

- https://medium.com/fast-company/the-mouse-of-the-future-your...

- https://purehost.bath.ac.uk/ws/portalfiles/portal/190368020/...

more https://www.google.com/search?q=eye+tracking+text+editing&oq...

Re: Editors (Vim)

#46

Has eye-tracking been explored for improved code editing beyond Vim? Vim does away with the hand-travel delays, but many of these ninja keystroke moves to navigate code are just what your eyes do already (but not all, such as the search function).

[deleted]

Re: Editors (Vim)

#47
Researched a bit for last few days about IDE and Vim seems to be the only viable long term option. I like Atom but it crashes all the time, VSCode doesn't feel clean to me. IntelliJ is the best but expensive. Only option I think is vim or Emacs. I loved the time I spent with Emacs last time, but gave up quick. I will learn to use Vim this time.

Re: Editors (Vim)

#48
post #38
post #7

Earlier quoted context omitted.

As a long time vim user, I’ve tried VSCode a few times and I cannot for the life of me figure out what all the hype is about. Can anyone who is proficient with it explain the philosophy behind it and what makes it so great? This is a sincere question, not a rhetorical one.

It's Emacs for Javascript people - a good thing since Emacs is moribund and most programmers are at least a little bit Javascript people. A highly programmable, cross-platform editor with zillions of extensions/modes that support all sorts of languages and environments. People complain about its resource requirements and performance, just like they did with Emacs. Vi(m) users are the natural enemy of VSCode, just lik…

> continuing their long proud tradition of being wrong about everything.

Why do you think that Vim users were/are wrong about everything?

Re: Editors (Vim)

#49

Researched a bit for last few days about IDE and Vim seems to be the only viable long term option. I like Atom but it crashes all the time, VSCode doesn't feel clean to me. IntelliJ is the best but expensive. Only option I think is vim or Emacs. I loved the time I spent with Emacs last time, but gave up quick. I will learn to use Vim this time.

Or both! I was a long time Vim user that switched to Emacs with evil mode. Using spacemacs.

I have a couple friends that swear by Sublime Text. It costs money but its not terribly expensive, and super fast. Its vim plugin is a bit lacking though so it wasn't that usable for me.

Re: Editors (Vim)

#50

Vim is a well-sharpened pocket knife, a precision tool that excels at editing text interactively. It’s interesting to me the different models for tools that address similar problems. I used to use vim, and the chords of keystrokes are still fresh in my mind, even though I switched to emacs years ago. And now I use vanilla emacs —but that model is totally different, it’s an okay text editor but an excellent customizab…

When deciding between whether to learn Vim or Emacs, Vim won me over with three things:

1) Learning Vim increased my efficiency across multiple machines, and not just my dev machine.

2) It's extremely lightweight. Note: you still need to be careful with plugins!

3) Modal editing is easier on the wrists. Most of my time as a developer is spent navigating through code (whether editing or browsing), and Vim's normal mode keybindings are much less modifier-based.

Post reply on HN