6 ms·
Also, a gem that most people don't seem to know about: a standard vim install comes with a program called `vimtutor`. Running it will put you inside vim with an
by novas0x2a 16y ago
Also, a gem that most people don't seem to know about: a standard vim install comes with a program called `vimtutor`. Running it will put you inside vim with an excellent first tutorial, suitable for beginner vimmers.
Good luck! The muscle memory you learn now will pay off in the future! :D
- sophacles 16y agoYes, vi related muscle memory is particularly useful when using non-vi text entry.:wq
- koenigdavidmj 16y agoGrr. Why can't ^W be something less harmful in most programs?
- jrockway 16y agoWhat programs is it not backward-kill-word in?
- sophacles 16y agoIn vim it is the first part of a sequence for manipulating windows. This mindset can conflict with e.g. firefox, in which ctrl-w closes a window. (particularly if there are multiple firefoxes/tabs open) Edit: That should be close tab, not close window, c-shift-w is window.
- jrockway 16y agoAh. In Emacs, bash, and conkeror, it does something useful. (I've never really understood why there are keyboard shortcuts for things like "quit program" and "print". How often, if ever, do you want to do those things? Do they really need to be one keystroke away!?)
- sophacles 16y agoThats a pretty inflammatory statement... "In one program and a couple that emulate it...". How is it not useful to have a keyboard shortcut to change focus between windows? Windows in vim refer to what I believe are called "splits" in emacs. The vim c-w stuff is analogous to c-x stuff in emacs. As for close tab shortcuts in firefox -- I use it all the time. Standard work flow for me includes c-t, google.com, <misspelled word>, c-w, <correct spelling from "did you mean">.
- viraptor 16y ago> Standard work flow for me includes c-t, google.com, <misspelled word>, c-w, <correct spelling from "did you mean">. This might be quicker: c-k, <misspelled word>, alt-enter, c-w alt-enter opens a new tab with the search.
- chancho 16y agoYou never close browser tabs?
- BrandonM 16y agofirefox, in which ctrl-w closes... It's very useful in situations like this to know that Ctrl-Shift-T reopens the last closed tab, and you can press it repeatedly to continue opening less-recently closed tabs.
- koenigdavidmj 16y agoYeah, but in Pidgin you just disconnected. And told your buddy/chat room that you did.
- jodrellblank 16y agoWindows programs, it's often kill MDI child window (or these days, tab).
- chancho 16y agoIn Windows, KDE and Gnome it almost universally closes a window. By default, anyway.
- jodrellblank 16y agoI can tell Vim isn't user friendly because :Q isn't an alias for :q by default. :/
- pyre 16y agoOne of my co-workers has aliases for typos of common unix commands. (e.g. 'alias mroe=more' and 'alias moer=more' etc)
- varikin 16y agoThat is one reason I like Zsh. It can figure out typos most often and prompts you. For example: > sl zsh: correct 'sl' to 'ls' [nyae]? (edit: formatting)
- Calamitous 16y agoUgh. I keep looking for a way to turn this "feature" off. The fraction of a second it would take me to recognize and correct my mistake is far less frustrating and time-consuming than having to parse the message and select an option. Of the hundreds of times this feature has popped up, I believe I've actually hit "y" twice.
- stralep 16y agoTo me, nethack was useful for hjkl...
- _sh 16y agoIndeed, when I had to make my personal 'vi or emacs' choice back in the day, I chose vi because I played a lot of nethack.