Go Back   Team-BHP > Around the Corner > Shifting gears > Gadgets, Computers & Software


Reply
 
Thread Tools Search this Thread
Old 24th October 2008, 00:06   #16
Distinguished - BHPian
 
Thad E Ginathom's Avatar
 
Join Date: Jun 2007
Location: Chennai
Posts: 7,605
Thanked: 6,690 Times
Default

The vi fan gets ready for a fight...



Not really of course...

but no, vi doesn't (didn't) do stuff like that. It is a VIsual front end built on a command-line editor. It is just an editor, and perhaps not a very sophisticated one at that, although it packs the power of regular expression search and replace. Try getting used to MS Word Search and replace, having attained some ability with vi's pattern matching!

When I worked for a while on a support desk, two of us had to be officially instructed to use Wordperfect, which we were supposed to support, and not vi.

I guess emacs is more like a transformer toy: you want it to be a Centurian tank, type ctrl-x ctrl-c tank, and, errrr.... run fast!

vi caught my attention first; that's all I can say . Maybe it's like perl and awk. I learnt awk, and did a lot of data processing with it. Perl will do much, much more; I had the book on the shelf, I used to say I'll learn perl when I grow up!

By the way... I vaguely remember having some MS Unix tool set that was free, but might have been back on W2000.

People who are into this conversation are likely to enjoy the following two pages from xkcd:

Regular Expressions

Real Programmers

...in fact they are likely to enjoy xkcd, three times a week, anyway!

Last edited by Thad E Ginathom : 24th October 2008 at 00:21.
Thad E Ginathom is offline   Reply With Quote
Old 24th October 2008, 00:14   #17
Senior - BHPian
 
Join Date: Jun 2006
Location: bangalore
Posts: 1,122
Thanked: 120 Times
Default

Quote:
Originally Posted by Thad E Ginathom View Post
The vi fan gets ready for a fight...



Not really of course...

but no, vi doesn't (didn't) do stuff like that. It is a VIsual front end built on a command-line editor. It is just an editor, and perhaps not a very sophisticated one at that, although it packs the power of regular expression search and replace. Try getting used to MS Word Search and replace, having attained some ability with vi's pattern matching!

I guess emacs is more like a transformer toy: you want it to be a Centurian tank, type ctrl-x ctrl-c tank, and, errrr.... run fast!

vi caught my attention first; that's all I can say . Maybe it's like perl and awk. I learnt awk, and did a lot of data processing with it. Perl will do much, much more; I had the book on the shelf, I used to say I'll learn perl when I grow up!

By the way... I vaguely remember having some MS Unix tool set that was free, but might have been back on W2000.
vim does a file explorer using a standard plugin script. This works for both console mode and GUI mode (gvim) :-)
Of course, there are many file explorers in the X environments like KDE and Gnome.
lancer_rit is offline   Reply With Quote
Old 25th October 2008, 01:35   #18
Distinguished - BHPian
 
Thad E Ginathom's Avatar
 
Join Date: Jun 2007
Location: Chennai
Posts: 7,605
Thanked: 6,690 Times
Default

Thanks --- just downloaded vim to take a look. I wonder how much of vi I can remember? Still got the books...
Thad E Ginathom is offline   Reply With Quote
Old 15th November 2008, 14:58   #19
Senior - BHPian
 
Join Date: Jun 2006
Location: bangalore
Posts: 1,122
Thanked: 120 Times
Default

Quote:
Originally Posted by Thad E Ginathom View Post
Thanks --- just downloaded vim to take a look. I wonder how much of vi I can remember? Still got the books...
vim also has modes which work like a normal windows editor (no normal mode, insert mode etc - though a vi/vim old hand like me does not advocate it).
I don't think you forget vi if you didn't use it for a while - its like driving :-)
And do :help [<keyword>] and you get some of the best online help in any program - stuff that is actually helpful!

BTW, I am an awk guy as well. Never got around to learning perl properly
lancer_rit is offline   Reply With Quote
Old 18th November 2008, 14:00   #20
Distinguished - BHPian
 
Thad E Ginathom's Avatar
 
Join Date: Jun 2007
Location: Chennai
Posts: 7,605
Thanked: 6,690 Times
Default

Well, in the days I learnt vi it was the only thing I had for writing and editing text. However, I've already found it useful for taking all the IMG tags out of a long post on another board where I'm a mod where a new member had linked to heaps of external pics, so it has earned its keep already .

And yes, I do remember quite a bit. Nice to meet another awker! That little grey book was, once, never far from my elbow
Thad E Ginathom is offline   Reply With Quote
Old 18th November 2008, 14:25   #21
Senior - BHPian
 
Join Date: Feb 2007
Location: Bangalore
Posts: 1,350
Thanked: 31 Times
Default

Having had a Solaris Server box as my desktop for more than 5 years, it took me more than a year to compromise on a Windows NT and then later 2000 !!! I believe I've rebooted the solaris box only twice or thrice in that time and it never hung up on me.

Glory days. I like Linux for what it has done, though I'm still a Unix fan !!

I've seen some expert vi users and I've been amazed the way they use it. I guess practice makes perfect.

kill rules !!
csentil is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yercaud-->Been there, Roamed there and Enjoyed shishir_bn Travelogues 50 8th December 2010 21:25
Any UNIX/LINUX C++ Developer out there?? clevermax Gadgets, Computers & Software 29 20th September 2009 12:16
Hello, is there anybody in there? comfortablynumb Introduce yourself 18 22nd July 2009 15:06
How to delete an svchost.exe file? Revvmaster Shifting gears 7 18th October 2004 14:01
R there any "NFS 5" fans out there!!! Shan2nu Shifting gears 71 16th May 2004 16:12


All times are GMT +5.5. The time now is 11:17.

Copyright 2000 - 2017, Team-BHP.com
Proudly powered by E2E Networks