Better HN
topnewbestaskshowjobs
Log inSign up

tyrmored

274 karma · joined Sep 5, 2009 (17y ago) · 102 submissions

Submissions

1.

Got: OpenBSD Developers' Git Fork(twitter.com ↗)

1 points · by tyrmored · 7y ago · discuss

comment 14y ago · link · parent

Keep in mind that you can run it on both ports; you can specify the Port option twice in sshd_config:

Port 22 Port 443

comment 14y ago · link · parent

Yes, I think you've nailed it. See my own reply to this comment.

comment 14y ago · link · parent

The time you can save with Vim can be significant, depending on the task. However what I think is far more valuable is that Vim doesn't get in the way; it doesn't impede the all-important "flow", and perhaps most importantly it stops you getting bored.

When your muscle memory develops to a certain point, using Vim becomes a subconscious thing. You don't have to think about how to copy all the text in between two quotes and paste it at the end of the document; there are already words in Vim's vocabulary for doing that, so you just do it. You don't need to build mental steps because it becomes completely natural, as easy as typing natural English; and just like in natural language, the more words you know well, the more likely you are to be able to use the right word at the right time, using language effectively.

Equally valuable: Vim takes the repetition out of everything. A technically versed creative mind is wasted on any repetitive task. You should never, ever have to do anything more than twice in development. You should be able to repeat and automate tasks and scarcely think about it. In Vim, this need is met by skilful use of . to repeat actions and q to record macros.

When you edit text optimally, you can concentrate on the task at hand, and the editor stays out of your way and does exactly what you need it to. You don't need to build the "subtask" of making your editor do what you want; you can just do it. I think that people who focus on the time Vim does or doesn't save you are missing the point.

comment 14y ago · link · parent

If nothing else this might help put the kibosh on the intensely annoying way Facebook users tend to use cutesy fake names so that you don't know who the hell they are when they comment on your posts.

comment 14y ago · link · parent

http://leisuretown.com/library/qac/8.jpg

comment 14y ago · link · parent

cgdb is a nice visualization frontend too: <http://cgdb.github.com/>;

comment 14y ago · link · parent

This is a problem that libetc is supposed to help solve: http://ordiluc.net/fs/libetc/

comment 14y ago · link · parent

    :Vex

comment 14y ago · link · parent

The cloud is no match for the cloud!

comment 14y ago · link · parent

Good old Perl Pie!

comment 14y ago · link · parent

    a
    I'm with you!
    .
    quit
    ?
    exit
    ?
    q
    ?
    q

comment 14y ago · link · parent

That's one of my very favourite pieces of tech-related comedy. I still laugh every time.

comment 14y ago · link · parent

Awesome stuff! I love your blog, by the way. It gives me a standard to which to aspire.

comment 14y ago · link · parent

Yeah, I corrected that after I noticed a few people commenting to that effect. :)

comment 14y ago · link · parent

That's the usual attitude, I think. "I'm glad I know how to use it now, but I hope I never have to."

comment 14y ago · link · parent

gqap uses a paragraph as a text object so you don't have to be at the start of the paragraph for it to work, just somewhere inside it.

comment 14y ago · link · parent

That, and heading off future competition. If Google were planning, for example, on releasing a multi-protocol web chat application of their own in the next few weeks, this would be a well-timed move.

Using Meebo's code base to make their own application might have been preferable to rebranding it in this case.

comment 14y ago · link · parent

The only thing I dislike about Vimium is it doesn't work on the "New Tab" window.

comment 14y ago · link · parent

Thanks for that; I clarified and gave you a footnote.

comment 14y ago · link · parent

I found NERDTree had no advantages for me over just plain :Vex. I'm sure it does have other features, but how whizbang does a file browser need to be, anyway?

Besides, anything you want to do outside of choosing files to edit in your editor should be done in a shell: http://blog.sanctum.geek.nz/unix-as-ide-editing/

comment 14y ago · link · parent

Using Chrome and Vimium on sites like Reddit and Hacker News almost feels like cheating -- "I shouldn't be able to consume this amount of information without even having to move my wrists."

comment 14y ago · link · parent

I'm very pleased it was useful. I'm surprised to see it hit HN; I wrote it back in January and it had a lukewarm reaction on Reddit and not a peep from HN. Then again, I normally don't submit new articles to HN.

comment 14y ago · link · parent

Vim only seems hard because it's so profoundly different. If you persist for even one or two evenings, I'm pretty confident most Hacker News readers are easily sharp enough to be back up to their old speed in Notepad-type editors, and from there you only get faster.

You don't have to learn it at work either. I find it's helpful to make Vim the only text editor you ever use with a dark background. The visual cue seems enough to put you in "Vim mode" so you press i before you start writing. When the background is white in your whizbang C# IDE or a Hacker News comment box, you just use your old editing habits.

comment 14y ago · link · parent

Just wait until someone names a whizbang plugin "nerdsboggler-jimcrickey.vim" out of sheer spite!

Nowadays I do load a few plugins myself on the machines where I do a lot of coding or writing, but the only one that's useful every single day without fail is Tim Pope's Surround [1]. It's so useful so often that I've often thought Bram should simply ask to make it part of Vim's core to supplement the very cool idea of text objects [2]. Even if you're a crotchety old raw-Vim man, I really would say that you've got to try this out.

There are other very good plugins out there. Fugitive [3], also by Tim Pope, comes to mind if you do a lot of Git work and care about crafting really nice commits.

[1]: https://github.com/tpope/vim-surround

[2]: http://vimdoc.sourceforge.net/htmldoc/motion.html

[3]: https://github.com/tpope/vim-fugitive

comment 14y ago · link · parent

Yes, gt and gT are the way to do this.

Admittedly I wouldn't personally recommend those mappings, because both already correspond to commands I use quite frequently. By default Y is synonym for yy, to yank a whole line, and T<char> moves back to the nearest instance of <char> on the current line. The first one I think people could live without, but the latter is kind of important for good vi.

comment 14y ago · link · parent

I could definitely do something like that. Probably not in the walkthrough style, which I don't really like, but definitely listing keystrokes and commands to use.

I'll write and post it sometime in the next week or so, if you're still interested by then. Thanks for the suggestion.

comment 14y ago · link · parent

What kind of things would you like to know? I'm open to writing a followup.

comment 14y ago · link · parent

Hmm, yes. :set hidden is recommended so often in pretty much every introductory tutorial that in places I've assumed people who have basic familiarity with Vim are already using it.

In retrospect this probably wasn't wise of me; I don't use it myself, and I still run into the occasional Vim guru online who doesn't either.

I've edited the post with a clarifying note and given you a footnote. Thanks.

1234