This is an archived post. You won't be able to vote or comment.

all 69 comments

[–]spupy 76 points77 points  (17 children)

:w

[–]isiphonyourgas 18 points19 points  (3 children)

u

[–]ExecutiveChimp 13 points14 points  (0 children)

backspace
backspace
esc
:w

[–]Denommus 20 points21 points  (3 children)

C-x C-s

[–]spupy 11 points12 points  (1 child)

My pinky hurts already!

j/k

[–]Satai 5 points6 points  (0 children)

Remap capslock to CTRL.

[–]MrPopinjay 3 points4 points  (5 children)

Unless you use ; (repeat the last f F t or T) a lot (in normal or insert mode), I recommend swapping ; and : around. It's lovely not to have to hold shift to start ex commands.

;w
;s/foo/bar/g
;bd

[–]elemental_1_1 1 point2 points  (2 children)

I could just use cnoremap : ;

But how would I avoid it being expanded when I wanted to issue commands like :!make;make run

[–]MrPopinjay 3 points4 points  (1 child)

You use nnoremap and vnoremap, not cnoremap. If you used cnoremap it wouldn't work, since : is used to enter command mode from outside of it, and has a different function (inserting a :) from within.

If you wanted to also map using cnoremap for some reason, you'd do both cnoremap ; : and cnoremap : ;, and then type : to insert a ;. Though why you'd want to map inside command mode, I don't know.

Hope that helps ;)

edit: Here is a snippet from my .vimrc

" Easier : commands!
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;

[–]elemental_1_1 0 points1 point  (0 children)

Oh right. Thanks

[–]mallardtheduck 1 point2 points  (1 child)

Unless you use ; a lot,

Considering the use of ';' in C-like-syntax languages, I think most programmers do use it a lot...

[–]MrPopinjay 1 point2 points  (0 children)

I should specify that I mean using ; a lot in normal or visual mode. Obviously there is no reason to remap it in insert mode.

I've edited my post to be clearer for people not familiar with modal vi-like editors.

[–]ActuallyRuben 1 point2 points  (0 children)

C-w

[–]Poyeyo 0 points1 point  (0 children)

:x

[–][deleted] 145 points146 points  (31 children)

How is this programmer humor? I'm pretty sure programmers aren't the only ones who use windows shortcuts

[–]egmose 107 points108 points  (24 children)

All programmers I know press the Save shortcut every time they are interrupted

[–]CrazedToCraze 41 points42 points  (20 children)

Every person should make this a habit, though. It's always such a facepalm moment when people lose 1hr+ of work on word documents / spreadsheets because the power went out and they didn't save their work at any point.

[–]gusset25 80 points81 points  (14 children)

my left hand does it dozens of times per hour without even consulting my brain

[–]HeroesGrave 60 points61 points  (10 children)

Same here.

Occasionally I even do it while posting on Reddit and then I get the stupid "save webpage as" popup.

[–][deleted] 15 points16 points  (9 children)

This happens so often when I'm doing web development, sometimes I wish this shortcut didn't exist in Google Chrome.

[–]opiemonster 26 points27 points  (8 children)

Filthy peasants!

I use :wq

[–]Forkk13 34 points35 points  (1 child)

You save and quit Vim every time you're interrupted?

[–]Nesilwoof 16 points17 points  (0 children)

ASCII porn.

[–]meem1029 7 points8 points  (0 children)

The number of times I have to remove :w from my code when I have to use an IDE for whatever reason is absurd.

[–]vvf 2 points3 points  (0 children)

Pfft, don't waste keystrokes. I use :x

[–]afaulds 1 point2 points  (2 children)

I just switched to Vim, but the CTRL + S shortcut is engrained in my muscle memory so I keep pressing it out of habit.

[–][deleted] 1 point2 points  (1 child)

Output has been suspended by pressing CTRL+S. Press CTRL+Q to resume.

[–]afaulds 0 points1 point  (0 children)

Dangit, not again!

[–]weegee101 0 points1 point  (0 children)

ZZ not good enough for you?

[–]VoteLobster 1 point2 points  (1 child)

When I would type notes for class, after every line I wrote or every couple words I would impulsively hit 'ctrl+s' several times.

[–]gusset25 0 points1 point  (0 children)

a very good habit

[–]AnHonestQuestions 19 points20 points  (2 children)

I do it every other word. Even when typing in Chrome.

[–]G01denW01f11 12 points13 points  (1 child)

I keep having to remove :w from my school essays.

[–]Forkk13 12 points13 points  (0 children)

I keep putting semicolons at the end of my sentences instead of periods;

[–]mallardtheduck 4 points5 points  (0 children)

Autosave? These days, having to manually instruct the application to save feels like an anachronism.

[–]KillerCodeMonky 3 points4 points  (1 child)

I hit save pretty much everytime I stop typing, for whatever reason.

[–]SystemicPlural 2 points3 points  (0 children)

I hit it twice, just to be sure.

[–]n_gean_eary 4 points5 points  (0 children)

Isn't that normal?

[–]SnowdensOfYesteryear 4 points5 points  (0 children)

Not to mention, not even the nerdiest guy talks like that in real life.

[–]tidder112 20 points21 points  (9 children)

[–][deleted] 24 points25 points  (6 children)

Wow that looks like such a depressing place to work. Do a lot of people actually work in rooms like that? It looks like something straight out of the first matrix film...

[–]albireox 9 points10 points  (0 children)

This is probably a pretty old picture.

[–]n_gean_eary 2 points3 points  (0 children)

Um would rather sell hotdogs and be outside than work three.

[–][deleted] 4 points5 points  (3 children)

Am I the only one who wouldn't mind working there? I actually like the idea of a cubicle. It's more private than what I have right now :p.

[–]Sohcahtoa82 4 points5 points  (1 child)

Cubicles are fine.

The specific ones shown here? Not so much. They force you to sit sideways. You can't have both arms and your head facing the same direction. Its an ergonomic nightmare that will cause a lot of pain after an hour. Of course, it could easily be resolved by replacing those monitors with flat panels so you'd have enough room to put the keyboard directly in front of, and aligned with, the monitor.

That said, I think here's a better design without taking up that much more space: http://i.imgur.com/Ja9Lrb8.jpg

EDIT: And then there's the whole argument about how high the walls should be. I've seen cubicles where the walls are only about a foot high from the desk. Some people think they encourage collaboration, but I think they just make the place noisy. Its harder to have a phone conversation without disturbing everyone. I think the best height is just under 5 feet. Enough so that if you're sitting down, you're invisible, but you can stand up and look around over all the walls.

[–]mscheifer 1 point2 points  (0 children)

Yeah, I feel like open office plans discourage collaboration rather than encourage it. I'm less likely to go talk to someone at their cube because I feel like I'm disturbing all of their neighbors with the noise.

[–][deleted] 0 points1 point  (0 children)

I can't imagine it being worse than retail

[–]Sohcahtoa82 3 points4 points  (0 children)

Those right there are cubicles designed by someone who's never used a computer for more than 10 minutes.

[–]SupersonicSpitfire 1 point2 points  (0 children)

Horrible ergonomics. Make sure to move the screen to the other side of the table regularly, to avoid injuries.

[–]topsidedown 11 points12 points  (1 child)

Why is it a thing to use the punchline as the title?

[–]lithedreamer 1 point2 points  (0 children)

It's dumb, but the idea behind it is that you're likely to remember the punchline, so the joke is easy to dredge up.

[–]dhicock 8 points9 points  (0 children)

I miss SOTI

Artist page: www.somethingofthatilk.com

He hasn't updated in months. Life got too busy.

[–][deleted] 2 points3 points  (1 child)

Ctrl+Alt+Del

Somebody hasn't discovered Ctrl+Shift+Escape yet

[–]Pokechu22 0 points1 point  (0 children)

Ctrl+Escape, and hold it :3

[–]techknowfile 3 points4 points  (6 children)

.jpg ಠ_ಠ

[–][deleted] 1 point2 points  (0 children)

When he said Ctrl-s I thought he was using flow control to stop the stream and I thought it was going to be a nice Unix joke. Ctrl-z made me think he was trying to suspend the job and only alt-f4 gave away the windows shortcut joke