News for hackers. Stuff that matters.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by tiuPapa on Tuesday February 12, 2019 @10:33AM (#19144264)
Not OP, but I think the argument is that Vim isn't a magic editor that would make you fast out of the box. And if you just want to get work done without concentrating on learning a new skill, maybe you should look at other options?
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by emsy on Tuesday February 12, 2019 @10:42AM (#19144379)
I can only speak for myself, but I've used vim plugins on almost every IDE I've ever used. Unlike editor shortcuts, which are often exclusive to a certain IDE, vim is transferable and that's how it has one of the best cost/benefit ratios for me.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by SketchySeaBeast on Tuesday February 12, 2019 @10:45AM (#19144413)
> Unlike editor shortcuts, which are often exclusive to a certain IDE, vim is transferable and that's how it has one of the best cost/benefit ratios for me.

Doesn't that just mean you've selected VIM's syntax for all your IDE's? Most IDE's seem to have plugins for other popular editors.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by NegativeLatency on Tuesday February 12, 2019 @12:34PM (#19145586)
Seems like it’s the difference between him being supported in many IDEs and say visual studio shortcuts being supported in some thing like Atom. (Support May exist for this, IDK)
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by SketchySeaBeast on Tuesday February 12, 2019 @12:47PM (#19145700)
True, VIM may not be better, but it's a standard so it's well supported.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by weaksauce on Tuesday February 12, 2019 @12:48PM (#19145709)
No, vim is a layer on top of the ide. normal keyboard shortcuts and other editor features still work in say Xcode or visual studio.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by heavenlyblue on Tuesday February 12, 2019 @01:06PM (#19145872)
So does vim support proper refactoring as it is in IntelliJ IDEA for any locally-scoped variable?
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by antew on Tuesday February 12, 2019 @01:12PM (#19145941)
No, but you can use the Vim plugin for IntelliJ and get it that way! There are Vim plug-ins for every IDE I've used.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by emsy on Tuesday February 12, 2019 @10:52AM (#19144487)
I can't reply directly to SketchySeaBeast but you're right, there are probably alternatives. Emacs shortcuts are widely used on terminal emulators iirc. Vim is just one option for a portable, efficient way to edit text.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by TeMPOraL on Tuesday February 12, 2019 @11:09AM (#19144667)
> And if you just want to get work done without concentrating on learning a new skill

Maybe this is a mindset issue, but I'm having a hard time imagining how one would want to just get the work done, without trying to pick up a skill in the process.

Despite the current UX trends of dumbing down software, it's rare you'll use a tool just once in your lifetime.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by tiuPapa on Tuesday February 12, 2019 @11:26AM (#19144842)
Ah I see your point. What I was trying to say is that learning Vim is a separate commitment. If you are not prepared to make that commitment, Vim will slow you down instead of speeding you up.
Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by TeMPOraL on Tuesday February 12, 2019 @12:23PM (#19145445)
That's true. And if you really believe you won't be needing vim - or won't be solving the class of problems vim is good for - very often, it may not be worth it to explicitly sit down and learn it. The calculus is correct, but the actual values that go into the equation matter a lot.

My wife has used SublimeText and Notepad++ for total of maybe 10 hours in her entire life. I'm not suggesting her to learn Vim (or Emacs), because the kinds of tasks she does with computers don't benefit that much from a proper text editor. However, most developers spent inordinate amount of time editing plain text files, and a lot of tasks they do in other tools - like task management, time tracking, documentation writing, drawing diagrams, commenting on StackOverflow - could receive stupidly huge efficiency improvements by being done in plain text too. Vim and Emacs are the two tools that are dedicated for precisely this class of problems. In my opinion, the couple dozen hours one has to invest over the course of a month to get some basic proficiency in them is worth the across-the-board payoff in work speed and comfort.

--

One trick I've learned is being explicit and deliberate about learning. To things like learning a new piece of software, recursive Pareto rule applies - 20% of time gives you 80% of value. 4% of time gives you 64% of value. So, say you're willing to entertain the thought of learning a little bit of Vim. Allocate a single pomodoro to it right now, and fire up vimtutor. 25 minutes, full focus. You'll notice it only takes a few minutes to break through your own habits and learn the basics of a new interface. You'll be impressed by how much you've learned in just 25 minutes[0]. Next step: commit to 5 hours over a week. 10 pomodoros. Find some introductory tutorials, and work through them this way.

Personally, I did above trick a couple of times to learn new Emacs features. Getting comfortable with multiple cursors, or with paredit, are things that turned out to take 1 or 2 pomodoros, and have been improving my editing speed and comfort for the past couple years.

--

WRT. mindset, a proper one can smooth out the learning curve quite well. The most basic trick that I see even developers not recognizing is this: every time you click on a button in your program, figure out if there's a keyboard shortcut for it. If there is, try to use it instead. Soon, you'll find yourself working much faster and comfortable than before.

--

[0] - though you'll lose half of it in a day. Committing new skills to long-term memory takes more time and exposure; muscle memory takes even more. Good news is, this happens pretty much by itself, as you apply the new skills to the tasks you're doing.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by kamaal on Tuesday February 12, 2019 @11:48PM (#19150489)
There is bad trend going on in the Industry for a while now. It's basically that people want things designed to be good for newbies and no body else. This makes tools easy to pick up, but it makes it very hard to solve complicated tasks with it.

Most people don't want to put in anything more than 40 hour work week these days. Which also means no time to learn and upgrade your skill set. That is for doing their everyday tasks.

Now selling vim or emacs to this set of people would never work for one reason. They just can't get themselves to spend that time.

That's also a big reason why people hate Nerds. These people spend to get better at things in a way we don't want to.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by nickjj on Tuesday February 12, 2019 @11:43AM (#19145051)
OP here. Yeah that's right.

And truthfully, the productivity wins for me weren't so much tied into being able to input text at a faster rate with Vim.

It was being able to leverage Vim itself to help me rethink and reshape how I organize large amounts of structured text, which saves a lot of time and headaches when dealing with files. Plus there's other wins too with limelight and video editing (an added bonus).

I'm still not 100% as fast as I was with VSCode for inputting and editing text but after 2 weeks of using Vim, it's not a complete train wreck anymore. It was brutal for days, but it's slowly getting better.

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by luxpir on Tuesday February 12, 2019 @05:32PM (#19148343)
Get yourself autocomplete set up in Vim. For large amounts of prose with repeated vocabulary it really does save time and effort.

Bonus points for using it in mutt for all electronic correspondence.

Also, why the Dickens are you using Windows when your heart clearly yearns for a nice native i3 setup?

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by nickjj on Tuesday February 12, 2019 @07:59PM (#19149392)
> Also, why the Dickens are you using Windows when your heart clearly yearns for a nice native i3 setup?

That was explained a few weeks ago in this post:

https://nickjanetakis.com/blog/i-tried-linux-as-my-main-dev-...

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by luxpir on Wednesday February 13, 2019 @06:10AM (#19152154)
> Pops and clicks in audio

Ah OK. Haven't had that myself, even using USB audio interfaces in a similar fashion, so I wouldn't put that down to Linux. I use monitor speakers and have good hearing and definitely not getting those issues with a simple pulseaudio setup. I flick between youtube, cmus, recording on my old Zoom H2, audio from a VM etc. so have run the gamut of opportunities for it to pop and click.

Sounds like you had to spend a lot of time troubleshooting and in the end thought it wasn't worth the fight. I hear you, but I would see if I could borrow another audio interface from a store or contact of yours before giving up on OS-freedom for good. The Scarlett is an entry-level device anyway, known to have dubious build quality. I'd also take it up with the manufacturer before looking for more fixes.

Good luck!

Re:Vim Is Saving Me Hours of Work When Writing Books and Cou... by nickjj on Wednesday February 13, 2019 @08:03AM (#19152695)
Yeah it seems isolated to some type of combo of hardware I have.

After I finish this next course I will try again with a different distro, and then see if my other USB mic that worked on the Chromebook (running native Linux) also works on my main machine.