Live data from Hacker News

How to Exit Vim

github.com

151–160 of 409 posts

Re: How to Exit Vim

#151
post #135

Jokes aside, shouldn't the page start with actually teaching how to quit vim? The page is considerably popular to show up on a Google search. I imagine the frustration of a beginner actually trying the first examples and not getting the joke immediately.

I don't know about vim, but in neovim you're greeted by the following when you launch it the first time: type :help nvim if you are new! type :checkhealth to optimize Nvim type :q to exit type :help for help This joke is pretty outdated :P (But still kind of funny)

You get the same thing in vim, but only when you open it without a file. Chances are, you only do that when you're already a vim user, and most non-users will be confronted with any random program opening a file in vim for them to edit (visudo, git commit, etc.)

Re: How to Exit Vim

#154

One of my Computer Science lecturers had a rule: use Vim for all development for his class whilst on campus, and if caught using any other editor/IDE – or committing any artifacts showing evidence of such – we would lose several percentage points from our final mark for his class. Harsh? Perhaps. But I can’t thank that lecturer enough for that rule. He converted a mostly IDE-wielding class into one that actually appr…

This is more or less what I did, but under my own motivation. I charged myself to do all my CS homework in vi and had a copy of O'Reilly's Linux in a Nutshell at my side. It didn't take more than a couple of semesters and I didn't need the book at all.

Re: How to Exit Vim

#155

One of my Computer Science lecturers had a rule: use Vim for all development for his class whilst on campus, and if caught using any other editor/IDE – or committing any artifacts showing evidence of such – we would lose several percentage points from our final mark for his class. Harsh? Perhaps. But I can’t thank that lecturer enough for that rule. He converted a mostly IDE-wielding class into one that actually appr…

Had the same thing when I was studying CompSci.

Ended up spending more time configuring vim than doing the work I was supposed to do.

Even did the completely pointless exercise of making custom syntax highlighting for the pseudocode language we had to use.

Re: How to Exit Vim

#156
It appears that the first bunch of methods don't account for graphical distributions of Vim, e.g. MacVim―which have a different executable name.

Re: How to Exit Vim

#157

One of my Computer Science lecturers had a rule: use Vim for all development for his class whilst on campus, and if caught using any other editor/IDE – or committing any artifacts showing evidence of such – we would lose several percentage points from our final mark for his class. Harsh? Perhaps. But I can’t thank that lecturer enough for that rule. He converted a mostly IDE-wielding class into one that actually appr…

That's stupid and elitist. There's no reason to force students to go against IDEs that they're already used to, but also the general method of navigating around a computer which they're probably used to from MS Word etc.

Re: How to Exit Vim

#158

Earlier quoted context omitted.

'screen' uses C-a as a prefix shortcut so developers of 'tmux' decided to use the next available key to avoid clash.

I don't understand the logic there. In what non-contrived scenario would you run both simultaneously, such that they would conflict? C-a does annoyingly conflict with readline's "move to start of line", though.

Hitting C-a twice sends it to the terminal.
Post reply on HN