Nerdy post

Sep 27, 2006 19:36

Lord help me, I'm finally learning vi. I find myself trying to do :wq to close a Web browser and odd things like that. It's seriously doing bad things to my brain ( Read more... )

unix, class, nerdity

Leave a comment

Comments 14

(The comment has been removed)

omarius September 28 2006, 00:48:43 UTC
I am used to 0 being False, but the convention for Unix seems to be, "if you get any exit status at all, something is borked." So, it seems nothing is true. Unix: score one for moral relativism. No, wait... ;)

Reply

ilanarama September 29 2006, 14:12:40 UTC
Aha, maybe this explaines why this script I have been using has flags to set 0 for true and 1 for false, which drives me bonkers.

Reply


editgrrl September 28 2006, 00:43:26 UTC
I was going to ask for a geek to English translation, but after I read it a second time I sort of understood it. Either that's scary for me or you're a good teacher. *g*

p.s. The only code I know is html-based, although I can understand and modify pre-written javascript.. so there is some basis for my confusion and shock at semi-comprehension. :)

Reply

omarius September 28 2006, 00:52:06 UTC
I used to teach Unix in Hawthorne's undergrad and graduate Electronic Publishing classes that he did for the English department. That was fun, and good practice for explaining by analogy. ;)

I keep telling my class that so much stuff is based on Unix that once they learn enough they'll start recognizing odd things in unexpected places in the IT world.

HTML is "markup," not "code." *smacks your geeky hand*

Reply

editgrrl September 28 2006, 01:04:05 UTC
I didn't say I was a very good geek. :)

Reply

omarius September 28 2006, 01:07:06 UTC
...she said to the guy who's been administering Unix systems and using PICO for a text editor for ten years...;)

Reply


(The comment has been removed)

omarius September 28 2006, 02:03:58 UTC
I'm already doing it in Pine a LOT.

Reply

yong_mi September 28 2006, 02:12:31 UTC
I kept hitting 'd' in the editing window of IDLE (Python development environment) and then would be puzzled why I kept getting error messages, before realizing that hitting 'd' didn't delete characters. D'oh.

Reply

ilanarama September 29 2006, 14:14:15 UTC
I do this ALL THE TIME.

I have known vi for way way long, so long that when I got another job after 3 and a half years not doing any Unix stuff at all, my brain had forgotten vi commands, but my fingers knew them instinctively. Very weird.

Reply


cdk September 28 2006, 02:42:49 UTC
I really dislike :wq. :w, then :q. Then again, I :q! a lot, since I often use vi instead of less.

My version of Pine exits if I type :wq or :q on a menu screen. I have it set to use vi as an alternate editor, so I never try to leave PICO with :wq, because I'm never in PICO.

Reply

cdk September 28 2006, 02:46:26 UTC
(It's totally accidental that it exits on :wq or :q, of course - : and w aren't recognized as commands, q is quit, and enter confirms.)

Reply

(The comment has been removed)

cdk September 28 2006, 06:34:17 UTC
It bugs me because getting in the habit of always using :wq when I'm done with vi discourages me from (1) saving without exiting and (2) exiting without saving, both of which are often sane things to do. It slows me down to think about "am I ready to save and exit?" When it's time to save, I type :w. When it's time to exit, I type :q. Sometimes nothing happens in between those two, but it still keeps me thinking more about what I'm actually doing than "I'm not looking at this document anymore, time to :wq" without thinking "did I make changes that need saved?"

Reply


Leave a comment

Up