(Useful) Stupid Vim Tricks?
haroldag writes "I thoroughly enjoyed the recent post about Unix tricks, so I ask Slashdot vim users, what's out there? :Sex, :b#, marks, ctags. Any tricks worth sharing?"
← Back to Stories (view on slashdot.org)
:r! emacs /I partly kid I like Vi
500 dollar reward for tip(s) leading to the arrest of the person(s) who stole my sig.
You're asking on the wrong site. No one on Slashdot has ever tried it.
I'll tell you when you're older.
:q
This guy's the limit!
is itself a stupid trick. Emacs sucks too. Please welcome you to 21 century - use textedit!
No thank you. edlin works just great for me.
Reply to That ||
I typed :Sex and it opened up a HUGE list of folders choc full of porn!
VIM is a "stupid vi trick".
Every time I update OS X no I have to dike it out and put the REAL "vi" back.
Young whippersnappers. When I was "at a young age", it was called vi, and it didn't have any of this fruity syntax highlighting, and if you wanted to navigate around a document you had to use h,j,k,l, not those hand-holding arrow keys.
Remember the old dig at emacs, "Eight Megs and Constantly Swapping?" Well back then, an 8 MB program actually did mean constant swapping!
I've been in this business for too damn long.
When I was your age I wrote thousands of lines of C code using EDLIN. (P.s. this was on a *nix box not DOS) (P.p.s Also walked to school 5 miles, up-hill, barefoot, in the snow, both ways)
Not really a vim trick, but I always liked to create a file in the / directory named README. The file just contained one line: "ERROR: can not open file README" When someone cats it, they get the error message. Pretty cute until they vi it and figure it out.
...and I've already gotten through half of my 20-page "(Useful) Stupid Emacs Tricks" post.
If your theory is different from practice, then your theory is wrong.
If only my parents had told me earlier.
molmod.com - computing tips from a molecular modeling
When I was your age I wrote thousands of lines of C code using EDLIN. (P.s. this was on a *nix box not DOS) (P.p.s Also walked to school 5 miles, up-hill, barefoot, in the snow, both ways)
That's nothing. When I was half your age I wrote code over a dial up connection without a modem. Made the tones with my voice! Mind you we lived in a cardboard box at the time, in the middle of the road.
When I was your age I wrote thousands of lines of C code using EDLIN. (P.s. this was on a *nix box not DOS) (P.p.s Also walked to school 5 miles, up-hill, barefoot, in the snow, both ways)
That's nothing. When I was half your age I wrote code over a dial up connection without a modem. Made the tones with my voice! Mind you we lived in a cardboard box at the time, in the middle of the road.
We used to DREAM of even having a phone to make tones with. We had to tap out our code with a telegraph machine, in binary, from memory. And as there were twelve of us living in OUR cardboard box, we had to take turns and STILL get eight hours of work done in a day.
Eeee, I used to dream of living in a hole in't ground. We used to live at bottom of lake, hand coding assembly language in hex, rotating bits with a hand crank and communicating it using signal flags or semaphore. And then sysadmins and punch card operators would come and chop us into little bits with paper tape readers and dance on our line printer reams. And you tell young people this today, and they just don't believe you
support :sex education!
Climate Progress - Hell and High Water
How else am I supposed to get anything done on Windows?
* leaves himself a note to get cygwin installed on the home system
How can I install that on Ubuntu?
* leaves himself a note to get cygwin installed on the home system
How can I install that on Ubuntu?
VMware.
thegodmovie.com - watch it
He said an editor, not an operating system.
Of all major operating systems, UNIX is the only one originally meant for gaming.
Young whippersnapper.
You think *you* had it tough? We had to figure out all the fundamental constants of the universe and then tough off the Big Bang and wait for limbs and blood to **evolve** before we could paint on the cave walls.
You "we inherited an inhabited universe" guys had it *so* easy compared to us. Did *you* ever work out the ideal value of Plank's Constant by trial end error? I don't think so.
Meh. Kids today.
DG
Want to learn about race cars? Read my Book
Young fools. You don't anything know about sed, do you? You can use sed "s/foo/bar/g" < file in another session of Screen. Of course, sed is a far too arcane tool for people who like to play music in an editor. Crappy music, by the way.