News for hackers. Stuff that matters.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by jcranberry on Tuesday February 12, 2019 @10:46AM (#19144429)
Vim isn't that hard to learn. I think the idea that someone doesn't have the willpower to learn vim is unlikely to the point of being ludicrous. It took me about two weeks of using vim with a printout until I could use it without thinking or having to reference it.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by Phenix88be on Tuesday February 12, 2019 @10:56AM (#19144520)
Vim is not hard to learn, a few hours give you the basic. Vim is hard to master. 3 years ago I started to use Spacemacs with evil (so vim) and I keep learning new vim tricks.

It's a lot of fun and I really can't go back.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by shriek on Tuesday February 12, 2019 @08:59PM (#19149678)
Isn't that the whole beauty of it? You're learning what you've already learned on top without having to re-learn everything again. That's primarily why I've stuck with it. That and the fact that it's easily programmable even though VimL leaves you wanting more.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by phailhaus on Tuesday February 12, 2019 @10:51AM (#19144483)
Have you ever tried to set up a colorscheme for vim? Add plugins, set keybindings? Imagine a non-engineer trying to do any of these things. Even as an engineer it's taken me years of iteration to get vim to a place where I'm as fast as I am, and I still get frustrated setting up a new computer (and I've gone through the trouble of hosting my dotfiles on GitHub!)
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by alpaca128 on Tuesday February 12, 2019 @11:16AM (#19144732)
It can be tricky, but doesn't depend on the user being an engineer. It mainly requires the right mindset.

Some people find even an iPhone too complicated, others don't mind reading the manual for a minute. For some users Vim just makes sense, while certain people will struggle with saving files in Notepad because they think a specific button is at the wrong place and refuse to learn it any other way than they imagined.

> I still get frustrated setting up a new computer

Why is that? Setting up Vim is the easiest task for me, it's literally just a matter of copying some files.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by phailhaus on Tuesday February 12, 2019 @11:47AM (#19145083)
> It can be tricky, but doesn't depend on the user being an engineer. It mainly requires the right mindset.

A mindset that is suspiciously similar to an engineer's. :P For example, you need the user to memorize the fact that all the configs are in a ".vimrc" file in their home directory. Oh and since it's a dotfile they might not see it immediately. And then if they want to add custom shortcuts they need to learn exactly how the syntax works, the different "modes", the types of remaps, etc. It's a horrible experience for a non-engineer.

> Why is that? Setting up Vim is the easiest task for me, it's literally just a matter of copying some files.

I have a lot of plugins (e.g. syntax highlighting, linting, and autocomplete for different languages), and each of those can have their own dependencies that they require you to install before they'll work.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by TeMPOraL on Tuesday February 12, 2019 @12:31PM (#19145544)
It's absolutely a matter of mindset.

I tend to use the example of a car in these topics, but I have a better one: a coffee maker. There are numerous non-obvious things one has to learn about coffee makers - like how to apply a water filter, and what kind to buy. Like the symbols that mean "not enough water", "not enough coffee", "dredge drawer full", and what to do when they show up. Somehow, I never see anyone complaining about this - because there's a social expectation that people can and should figure this out. The coffee machine comes with a small booklet explaining all of this in pictures and a dozen languages.

Yet somehow, with software people think that the UI should just have a button labeled "get my job done", pressing which will get their job done. It's a really broken mindset, because it's impossible (or rather, it's an AI-complete problem) to have software like that.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by falcrist on Tuesday February 12, 2019 @02:03PM (#19146417)
The coffee maker does indeed come with a booklet that explains what various messages mean, and what actions need to be taken to address these issues. Those steps are maybe two sentences long and generally self evident even without the booklet.

People complain about that, because they think things should be handled and explained within the machine itself. I don't complain about coffee machines, but I agree with the principle. If I have to go searching through manuals to figure out what actions I need to take to get something working, that piece of software has failed at user interface design.

Sometimes it's ok to fail at UI. I don't expect everything handed to me on a silver platter when I'm writing a bootloader for an 8051, but I do expect my tools to be reasonably user friendly. Vim isn't user friendly, and that understandably drives people away. Hell, even emacs can be a pain to work with.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by mcguire on Tuesday February 12, 2019 @04:30PM (#19147727)
Fortunately, many other tools are much easier. They can't be configured; you adapt to them.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by creyes on Tuesday February 12, 2019 @11:10AM (#19144676)
I think that it's probably better to start with a solid vimrc and then make changes from there. Ours is pretty standard and included with our standard dotfiles https://github.com/thoughtbot/dotfiles/blob/master/vimrc

A HUGE problem with developers learning VIM is that they think they have to go from 0 - 100 immediately when you can adopt VIM gradually and still see noticeable efficiency increases.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by phailhaus on Tuesday February 12, 2019 @11:50AM (#19145123)
> A HUGE problem with developers learning VIM is that they think they have to go from 0 - 100 immediately when you can adopt VIM gradually and still see noticeable efficiency increases.

That iterative process is exactly what I'm talking about. It's taken years to develop my vimrc, because starting with a "prebuilt vimrc" means that you don't really understand what is pure vim, what's custom, and what issues you might run into because of those custom settings conflicting with new plugins.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by jcranberry on Tuesday February 12, 2019 @01:12PM (#19145942)
The first time, each of those things probably took me like ten seconds. Cloned into folders specified in readmes. Keybindings are even simpler.

Obviously there can be snags on the road and things get more difficult the more complicated things you want to do, but learning the basic keybindings and being able to efficiently edit files with vim just isn't that hard.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by darkpuma on Tuesday February 12, 2019 @06:05PM (#19148615)
Why should a non-engineer use Vim? If you're writing prose not code, then using vim is like using a Hilti rotary hammer to hang picture frames.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by phailhaus on Wednesday February 13, 2019 @05:07PM (#19157571)
Yep! They shouldn't! That's what I'm arguing :)
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by _of on Tuesday February 12, 2019 @11:34AM (#19144944)
not hard. most of those things can be googled in seconds and copy pasted into .vimrc

I would say vim is easier to configure than, for example emacs

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by phailhaus on Tuesday February 12, 2019 @11:43AM (#19145050)
Non-engineer: "What is .vimrc?" And no, for example solarized takes quite a bit of googling to learn exactly which files to copy from GitHub (red flag: non-engineer has to go to GitHub and download a raw file), and then fiddle with the color settings depending on which terminal you're using.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by mcguire on Tuesday February 12, 2019 @04:44PM (#19147859)
Ever tried changing the color theme in Eclipse?
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by nickjj on Tuesday February 12, 2019 @11:48AM (#19145095)
It's funny you mention printouts. They've been critical for my learning process too. I have a standing desk and as of right now I have 6x sticky notes worth of shortcuts hanging down below my monitor.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by weaksauce on Tuesday February 12, 2019 @12:55PM (#19145782)
I say that vim is easy to learn if you approach it from the idea that it’s a vocabulary to edit text and not a bunch of arcane invocations. Instead of learning di” as a invocation to delete text inside the current or next pair of double quotes on the line you learn it as a verb and target... d deletes i sets the scope inside something and “ is the target. Then the next time you want to delete inside something all you need to do is change the target up to say single quote or paragraph. or you substitute the inner with a mark or a line number or a regex.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by nickjj on Tuesday February 12, 2019 @01:43PM (#19146215)
Yeah once I got to thinking about it being almost like a piano, where you're playing notes or melodies to do something it suddenly all started to click.

But still, I have a lot jotted down. Mainly the hotkeys, but also things just to remind myself that a feature exists (like * to highlight the current word).

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by james_s_tayler on Tuesday February 12, 2019 @06:19PM (#19148723)
I don't have the willpower to learn vim. Everytime I even look at it I think... no. And reach for nano instead and just be inefficient and happy. We're out there.