7 ms·
This is an extremely awesome, fantastic, exhilarating use of hyperbole. What I gained from the article wasn't any explanation of why Vim is great; indeed, ther
by kevinalexbrown 14y ago
This is an extremely awesome, fantastic, exhilarating use of hyperbole.
What I gained from the article wasn't any explanation of why Vim is great; indeed, there was little included in this respect, aside from moving "entire blocks of code with the flick of a finger." Even the cool feeling of proficiency you get from knowing a tool well, and the fun of getting to show off a skill to a "how did he do that!?" audience was secondary.
My favorite part was the implicit reminder to relax about my tools. The most effective use of hyperbole is not the emphasis of a particular point, but a caution not to take ourselves too seriously, and place our self-satisfaction in proper perspective. The most powerful instances border on satire, and in that respect, this piece was perfect.
Addendum: I use vim and pentadactyl. They are extremely awesome, fantastic, and exhilarating.
- mun2mun 14y agoJust watch the video of the page http://blog.extracheese.org/2010/11/screencast-custom-vim-refactorings.html http://blog.extracheese.org/2010/11/screencast-custom-vim-re... to get the gist of "entire blocks of code with the flick of a finger".
- noonespecial 14y agoThanks for posting that. I'm a bit of a VIM noob. I learned * and '' from that. Most useful. So much awesome yet to discover.
- solutionyogi 14y agoWow. That guy's VimFu is crazy. I wish I was half as fast as he is.
- andrewstewart 14y agoGary Bernhardt (guy doing that screencast) also does [Destroy All Software][1]. Lot of useful Ruby/Rails videos, done with vim. He's just as fast as this video, if not faster, and he doesn't slow down. [1]: http://destroyallsoftware.com/ http://destroyallsoftware.com/
- agumonkey 14y agoAh, I thought the voice was familiar. I like the fact that he types fast but mostly acts smooth. Very easy to follow. side note, everyone has to watch his https://www.destroyallsoftware.com/talks/wat/ https://www.destroyallsoftware.com/talks/wat/ talk
- astrofinch 14y agoI'm pretty sure that "re-factoring" could've been accomplished equally fast with the mouse. In most editors, you can double-click to select a token and triple-click to select a line. So the mouse version would be: double-click 10, copy, double-click ten, paste, triple click the line you want to delete, press delete. Pretty fast, really; especially if you're using a laptop where the cost of moving your hand to the mouse is negligible. I tried Vim for several months and got reasonably competent. But then I timed myself doing the Vim tutorial with Vim and Gedit, and Gedit won handily. For this reason I'm convinced that Vim is only popular because using it gives you hacker cred. I'm open to changing my mind based on solid experimental evidence, but for now I only use Vim occasionally, for the macros.
- zephod 14y agoYour first paragraph ignores the central point of the screencast: How would you record those mouse interactions as a general, reprogrammable macro? He signs off the video with an important statement which hints at the 'zen' of using Vim for a long time: "It's a nice thing to aspire to, to automate all of your interactions with the code in this way".
- illumin8 14y agoWhile, his vim skills are impressive, I question the value of "refactoring" your code to use magic numbers. Isn't this a big no-no in most code bases?
- grammaton 14y agoGreat screencast, and thanks for including it - but man, that guy really should get a quieter keyboard.
- wyclif 14y agoI love my clickety-clack IBM Model M, and they'll take it away when they pry my cold, dead fingers from it.
- babarock 14y agoAlso, years of evangelism will teach you that you cannot convince someone that Vim is better, let alone great. A lot of the propaganda out there starts by telling people "you're doing it wrong! Let me show you the better way!". Vim is one of these tools that isn't obviously better, so that you don't really understand its power until you try it (for a few months or so). I enjoyed this article exactly because the author didn't try to rationalize the superiority of his tool, rather depict in an entertaining way, a familiar (to me) feeling of empowerment said tool can give you.
- dredmorbius 14y agoMany worthwhile revelations are inherently experiential. There are a very, very few people who are sufficiently gifted in communication to be able to sell large numbers of people on them. In most cases, though, people simply have to achieve enlightenment or experience the concept for themselves. The Zen koan of the seeker told he would find enlightenment by acquiring the shirt of the happiest man in the world ... who turns out to be shirtless ... captures something of this essence.
- einhverfr 14y agoExactly. This is one reason why I never tell people they are wrong regarding a choice of text editors. Keep in mind I usually have multiple VIM instances open and an instance of gedit (because I do some things that VIM is a little clumsy at regarding my todo list). What I usually say is something like: There are text editors and then there are text editors. If you are only spending a few hours a month in front of a text editor, you are probably better off with something simple. If, on the other hand, you are going to be using it all the time, it is well worth your time to learn an industrial strength one like VIM or EMACS. These have learning curves, but they have big payoffs as well regarding productivity.
- icebraining 14y agoW.r.t your Todo list, have you tried VimOutliner? It's excellent for that, even having macros for checkboxes and such.
- guscost 14y agoI recently discovered a way to learn Vim without fear: learn undo ('u') first! If you know that, you can just mess around with Vim commands until you inevitably screw something up, undo the changes, relax, take a deep breath, and Google whatever you're trying to do.
- irahul 14y agoIf you are familiar with vim, install gundo.vim and enjoy traversing your undo tree.
- guscost 14y agoAwesome.
- helpbygrace 14y agoand Ctrl + R for redo.
- pyre 14y ago... and this to go back to the state of the file 10 minutes ago: :earlier 10m and :later 10m to go back. Note: This is independent of undo/redo cycles as Vim keeps track of that in a tree-like structure. There's just no really great default way of accessing it. See Gundo for a plugin that tries to make it more accessible.
- alttab 14y agoYou just blew my mind.
- adito 14y agoAnd he end it with :wq This part make me smile... Wonder what others tough when see that?
- tsm 14y agoFor rhetorical effect, `:wq` is right. But in the real world, `:x` is the better choice.
- DigitalJack 14y agoI've been using vim for years and didn't know about :x. go figure.
- artursapek 14y agoThe only time I type :wq is when it's by accident that my finger hits both keys at once. I hate it.
- tsm 14y agoBe aware that :wq will update the last-modified timestamp and :x will only do so if it's actually saving.
- saraid216 14y agoPft. What rhetorical effect? `:x` is always the better choice. :P
- sofal 14y agoI disagree for the following reason: I think of :w and :q as two concepts, and :x adds a third, which I personally feel adds some cognitive load, like I now have to differentiate between wanting to write, wanting to quit, and wanting to do both at the same time. With :wq it feels to me like I'm deliberately saying "let's write and then quit". Muscle memory is not likely to kick in anyway because I almost always use :w and :q separately. I'm modifying the file in one tmux window and compiling/running it in another, so I keep the file open in vim. I don't want to replace :q with :x because I want to be alerted if I've made some changes that haven't been written yet, because that means I may have neglected to test them.
- SilasX 14y ago>Addendum: I use vim and pentadactyl. They are extremely awesome, fantastic, and exhilarating. Hell yeah! In fact, I came to Vim through pentadactyl because I wanted a way to browse without using the mouse. I second the description of "exhilarating": navigating pages from the keyboard is much, much faster than clicking on links (except in those cases where the poor site design makes the clickable buttons undetectable to pentadactyl... Psst, HN search result navigation, that means you)
- icebraining 14y agoAnd the ring that binds them together is Pentadactyl's Ctrl+i, which opens the the textarea with focus in GVim, and then loads it back when you close the editor. I'm typing this in it ;)