In the opposing vein, as an Emacs user the best configuration I ever made was to rebind C-x C-c to execute-extended-command instead of kill-emacs. It was way too easy to (even accidentally!) kill emacs with a sweep of a finger. And I probably use a few hundred execute-extended-command calls for each kill-emacs (which I now have to type manually as 'C-x C-c kill-emacs' - no problemo). A similar optimisation was with t…
Nice. I did something similar w/ tmux: map the prefix key to C-a and map CapsLock key to Ctrl (never found real use for it). So Ctrl-a (actually CapsLock-a) is very ergonomically pleasant.
How to Exit Vim
321–330 of 409 posts
Re: How to Exit Vim
#322Re: How to Exit Vim
#323Earlier quoted context omitted.
> A similar optimisation was with tmux to bind the prefix to C-z. It's in a handy location next to ctrl and I very rarely use suspend anyway. I think gnu screen has the right idea here: ctrl-a. And you say z is close to control - does that mean you use emacs without shift lock as control?! (I mean sure, still closer than b...).
C-a is the worst default keybinding ever, since like, going to the beginning of a line is one of the most common operations.
Re: How to Exit Vim
#324First step to quit vim is to accept that you are vim user. Here are some tips: Try to limit yourself to one vim session per day, then one session per week, and so on. Try to replace some Vim sessions with Emacs. Buy notebook with keyboard without Esc key. Install an OS without Vim. Use mouse.
> use mouse Noooooo! Not that! Please not that!
Re: How to Exit Vim
#325Earlier quoted context omitted.
In 2018 - this is so bad that it deserves some kind of disciplinary measure from administration. This is absolutely unacceptable for students needing different accessibility enabled tools other than vi /vim. For example, if using an alternative screenreader or a vocally/sound enabled ide or if needing to interact with a text editor via a brail enabled tool that doesn't work with vi, does the student just get failed o…
ex, something that comes with every installation of vi, is completely accessible.
Re: How to Exit Vim
#326I first gained access to a UNIXish system in the fall of 1988, which was some SunOS4.x variant I believe. The shell was csh, the editor was vi, and I had no idea what I was doing, nor was there any help in my immediate area to be found. And no, I didn't know about 'man' yet. Somehow I discovered that 'vi' was the way to edit things, but I didn't know how to exit, so trial and error led me to pressing control and z at…
Similar experience, except a ATT 3B2 (and thus no job control). I would have read the man page, but there were none, nor were any books available. I finally just pulled the plug out of the wall. It's not much of an exaggeration to say that I became a lifelong emacs user because the start screen even back then explained how to exit.
Re: How to Exit Vim
#327- So, how did you learn Vim? I heard there's quite a learning curve. - I just open it, but I couldn't figure out how to quit. Then I have been using it for three years already. (Same applies to Emacs.)
Re: How to Exit Vim
#328Earlier quoted context omitted.
Similar experience, except a ATT 3B2 (and thus no job control). I would have read the man page, but there were none, nor were any books available. I finally just pulled the plug out of the wall. It's not much of an exaggeration to say that I became a lifelong emacs user because the start screen even back then explained how to exit.
Holy shit, ATT 3B2, I haven't heard any mention of those in a long time. So, six years later, in 1994, I found myself as the UNIX system administrator for a large (at the time) datacenter at Keesler Regional Medical Center, Keesler AFB, Biloxi Mississippi, where we had quite a number of 3B2s. They were, in fact, the only machines we had that were rated for classified data. If memory serves, they ran AT&T System V rel…
Re: How to Exit Vim
#329Re: How to Exit Vim
#330Earlier quoted context omitted.
It’s a college class in which students are supposed to learn something new, that seems like a perfect example of a situation where you should be forced to do something outside your comfort zone. I don’t interpret that as the college professor saying this is actually the best way to code, just that forcing students to struggle through it is a learning experience.
> It’s a college class in which students are supposed to learn something new Unless the central thrust of the course is supposed to be the mechanics of a particular dated editor, the restriction described seems to be a distraction from rather than an aid to what the students are supposed to be learning. It doesn't make any more sense than a social science course where the deliverables for most assignments are essays…