Live data from Hacker News

Vim for Humans

vimebook.com

41–50 of 251 posts

Re: Vim for Humans

#42
post #22

A little background. I am familiar with vi and use it only when I ssh into a server. But I never really felt it was more convenient or an improvement over a GUI based text editor or IDE on my development machine. Eg- gedit for simple text editing, Android Studio for android development, Atom for python coding. Everything works out of the box with minimal tweaking required. Genuine questions: -At what point on the lea…

My simple whys. No mouse needed is the biggest. It is like when you watch someone not use short cuts in your OS or they use mouse to select the word and then right click for copy.

diw to delete whole word.

yy then 5p to repeat the line 5 times instead of copy paste.

/ for search is really nice.

gg to go to the top or G to go to the bottom.

These things make it worth using vim for me. I use vim mode on all the editing programs (RStudio and VS Code)

Re: Vim for Humans

#44
post #22

A little background. I am familiar with vi and use it only when I ssh into a server. But I never really felt it was more convenient or an improvement over a GUI based text editor or IDE on my development machine. Eg- gedit for simple text editing, Android Studio for android development, Atom for python coding. Everything works out of the box with minimal tweaking required. Genuine questions: -At what point on the lea…

>-The common argument of only keyboard, no mouse when using vim... I don't get. Is using a mouse such a major factor that slows you down or affects you negatively?

Yes, it hurts my wrist. If I use it continuously for too long it becomes disabling. I use awesome window manager, tmux, vim, vimium browser plugins so that I never have to touch the mouse.

Keyboards hurt my wrists too but it's much more manageable.

I havn't measured actual speed/efficiency, but once I got used to keyboard shortcuts for everything using the mouse feels slow, clunky and inaccurate.

Re: Vim for Humans

#45
post #5

Earlier quoted context omitted.

I kind of agree but vim's defaults are awful. Tim Pope has put together a good set of non-opinionated defaults which don't change key bindings or customize it otherwise [0]. I have a very similar vanilla setup with no plugins apart from syntax highlighting for some languages not included by default. [0] https://github.com/tpope/vim-sensible

That may be, but it's tough to use a customized vim on your local machine, and then switch to a stock install on a server somewhere, no?

Copy over one file (.vimrc) and you're done. If you use plugins, then copy them over with git or whatever. And my setup is very conservative so it's mild annoyance at worst.

The defaults are just bad, I recommend using vim-sensible or doing your own lean and mean vim config.

Re: Vim for Humans

#46
post #33

Earlier quoted context omitted.

In emacs, at least, every command has a name. Anything you'd like to do can be searched using tab completion and a little guesswork, at first, by typing `alt-x` followed by the first couple letters of a plausible name for the thing you are trying to do. It's an extremely clumsy but totally workable way to get around if you only rarely need to edit a text file on a remote server. For example, if you highlight a sectio…

After a few months using Spacemacs, I moved to neovim, but took the idea of the space leader and "meaningful" mappings with me. I remapped the leader key to space, and created a bunch of sensible mappings: all my Markdown mappings are under m and so on. I left most of the normal mode movements at their defaults, though. It would be cool if someone could do a Spacevim vimrc or plugin.

someone started a spaceneovim: https://github.com/Tehnix/spaceneovim https://www.reddit.com/r/neovim/comments/539oxk/spaceneovim/

Re: Vim for Humans

#47
post #33

Earlier quoted context omitted.

After a few months using Spacemacs, I moved to neovim, but took the idea of the space leader and "meaningful" mappings with me. I remapped the leader key to space, and created a bunch of sensible mappings: all my Markdown mappings are under m and so on. I left most of the normal mode movements at their defaults, though. It would be cool if someone could do a Spacevim vimrc or plugin.

someone started a spaceneovim: https://github.com/Tehnix/spaceneovim https://www.reddit.com/r/neovim/comments/539oxk/spaceneovim/

Nice! I'll give it a spin.

Re: Vim for Humans

#48
I am old enough to know vim pretty well and I guess I do not need the e-book, but I just wanted to congratulate you for the landing page: clear design and better content. I just love the pitch "How do I quit this @#!?"

Re: Vim for Humans

#50
post #45

Earlier quoted context omitted.

That may be, but it's tough to use a customized vim on your local machine, and then switch to a stock install on a server somewhere, no?

Copy over one file (.vimrc) and you're done. If you use plugins, then copy them over with git or whatever. And my setup is very conservative so it's mild annoyance at worst. The defaults are just bad, I recommend using vim-sensible or doing your own lean and mean vim config.

As someone who only uses Vim casually, what's an example of a bad default?

For someone who is new to Vim, they wouldn't know if the controls are bad, or tough to learn e.g. using jkl; instead of arrow keys.

Post reply on HN