News for hackers. Stuff that matters.
Re:A Good Vimrc by cma on Saturday October 10, 2015 @09:54AM (#10365520)
It isn't just writing code faster, but also navigating (thus comprehending) faster, and in some cases writing code with less errors.
Re:A Good Vimrc by coldtea on Saturday October 10, 2015 @10:59AM (#10365670)
Has this "faster" thing been measured and profiled scientifically in some kind of A/B testing?

Or it's just based on subjective feelings and cargo cult?

Re:A Good Vimrc by tremendo on Saturday October 10, 2015 @12:52PM (#10366079)
This whole discussion is ridiculous. When you customize your vim key bindings, you do so either on your machine, or your profile on some remote server. One does not mess with other's computers or settings. But ...

> Or it's based on subjective feelings and cargo cult?

What if it is? What if I am _factually_ not "more efficient", what if I am just "happier" with _my_ setup on _my computer_? how does that in reality could have a negative effect on a team? I am of course assuming that the "we mess around with other's machines or profiles" is an obvious-enough bad practice that it doesn't happen. Right? Right!?

Re:A Good Vimrc by to3m on Saturday October 10, 2015 @11:58AM (#10365899)
In my tests it's always made quite a difference if your fingers are already on the keyboard, and you want to invoke some specific, non-interactive function; you can usually hit the shortcut, whatever it is, in less than the time it takes to move to the mouse alone.

Few would argue that moving from keyboard to mouse and back between every keypress would be more efficient than just typing one key after the other, as is more usual. The same applies, when activating a shortcut: for example, starting with my hands on the home row, I can do 10 activations of copy (Cmd+C), returning my hands to the home row between each activation, in about 8 seconds. Using the mouse in a similar manner to select the corresponding menu item takes about 22 seconds. Just moving my hand from the home row to the mouse and back again ten times takes around 9 seconds.

(These times are all slightly approximate, because I'm going by eye, because with 2 hands on the home row I don't have a hand left to operate the stopwatch.)

The longer the shortcut, the more time it takes to activate, of course; here, I picked a nice easy one, in the form of Cmd+C. Maybe that's cheating. Some of the fiddlier emacs shortcuts can be quite time-consuming to enter - the rect ones are particularly bad - C-x r C-w, that sort of thing. I wonder how much quicker those are? But I'd imagine they'll still win out over moving from keyboard to mouse to menu bar and back, since for shortcuts you invoke often, muscle memory takes over and you can rattle them off without even thinking.

Maybe all those piano lessons helped after all.

The reader is invited to use their preconceived opinions about microoptimization to decide which conclusion to draw.

(I have no particular opinion about what to do if your hand is on the mouse to start with. Generally I move it back to the keyboard if I don't know how to do something with the mouse, or leave it there if I do. For things such as moving the cursor, or scrolling, the mouse is very effective anyway; usually effective enough that in many cases it's worth using in preference to the keyboard, if you don't have some non-interactive higher-level motion that you could conceivable invoke, such as M-x forward-sexp, or whatever.)

Re:A Good Vimrc by ownagefool on Saturday October 10, 2015 @12:23PM (#10365973)
Interestingly I've also played an unfathmoly amount of FPS games to the point where my mouse skills are pretty fricking nifty, so I may be bias, but I'd question why I have both hands on the keyboard when trying to read and understand code anyways?

The thing is, I'm not arguing that you're not quicker anyways. Just that the speed difference between someone good with a mouse and someone good with keyboard shortcuts generally don't matter in a world where IDEs exist and where understanding code properly takes longer than just navigating through it.

Anyways, I'm not actually bothered what you use as long as you can take care of yourself, which a user with a weird vim configuration generally can. However, as I said in a post above, if you're struggling to use git, I'm only gonna be able to help if you use the cli. That won't be the vim guy, but it will be the windows guy who asked me for ftp access.

Point is though, I think the counter argument that using the same tools is super valid. I don't think it's the most important thing in the world, but I do think it has merit.

Re:A Good Vimrc by scrollaway on Saturday October 10, 2015 @11:13AM (#10365730)
https://ux.stackexchange.com/questions/30682/are-there-any-r...

With that said, this is in the realm of common sense for anyone who's ever used vim bindings at least semi-seriously. We're not just talking millisecond improvements, we're talking about doing some tasks that can take several minutes in mere seconds.

Re:A Good Vimrc by ownagefool on Saturday October 10, 2015 @12:19PM (#10365959)
Faster than what? Faster than clicking on the function name and seeing where it's reference in an IDE? Like I said, I dont buy that your vim plugins and shortcuts are going to help you understand that code better. I'm in no way arguing we should all be using notepad though.
Re:A Good Vimrc by scrollaway on Saturday October 10, 2015 @12:53PM (#10366083)
This isn't an argument about "vim" vs "IDEs". You really should read the entire thread.. or re-read it.
Re:A Good Vimrc by ownagefool on Saturday October 10, 2015 @01:20PM (#10366161)
Linked post is about vim.

The first post of this thread is about vim setups all being different causing problems.

The next post is about vim, configs and developers not conforming being a pain in the ass.

The next post is about you taking offense to his colourful comment ( he was poking fun btw, you shouldn't be offended )

The next post is me backing his point as having merit without the negative connotations. Specifically mentioning IDEs.

The next post is saying it's not just about writing code quicker but navigating and understanding quicker.

Then there's me again saying is how is a tricked out vim really any faster than an IDE to the point it matters.

Then there's you saying I don't understand the thread.

Are you trolling or just totally missing the point because I don't agree with you? Either way, my comment was totally on point for this thread but I'd rather be arguing the point than responding to silly off-topic comments.

Re:A Good Vimrc by scrollaway on Saturday October 10, 2015 @02:00PM (#10366301)
Have you seriously missed that this is a discussion about general customization of things such as keybinds/mappings, shells, dotfiles etc? Somehow you turned that into "IDEs vs vim" and you were the only one mentioning IDEs. Customization can happen in IDEs too, you know...
Re:A Good Vimrc by ownagefool on Saturday October 10, 2015 @05:04PM (#10367002)
Listen, I get that you're outraged that I've had the audacity to question the worth of customisations but nitpicking an example doesn't encompass the entire argument doesn't detract from the point that this is a thinking mans game.

As it stands I'm not trying to take your toys from you. If you can take care of yourself, do what you like. If you are likely to need some assistance you'll likely annoy anyone who needs to touch your computer.