|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
g mnemonic
I remember the g functionality for search and destroy missions as standing for "global"<br>
You didn't mention another handy command, <!-- Code --> <p><pre><font color=#008000><xmp>!!an OS command</xmp></font></pre><p> <!-- Code --> to put a command's output into the current document and <!-- Code --> <p><pre><font color=#008000><xmp>ZZ</xmp></font></pre><p> <!-- Code --> to exit in a hurry with a save... |
|
#17
|
|||
|
|||
|
what about emacs?
emacs is arguably more powerful than vi,
though I usually use vi, as I have to work on so many different *nix machines, I'm sure that it is there, and vi always works.... and it's usuable over a slow telnet connection... but emacs has quite a nice ability to write extensions in lisp, etc... just ask any cs dropout... er cs grad... |
|
#18
|
|||
|
|||
|
Re: More More!
I couldn't agree more... I'd also like to learn how to alter the section delimiters, something that I haven't been able to find in ANY of the documentation.
|
|
#19
|
|||
|
|||
|
kudos
An excellent tutorial! I look forward to more.
I think some readers don't understand the implications of calling vi a Ferrari. The name doesn't imply luxury or convenience: it implies performance in the hands of an expert driver. I've seen a UNIX programmer write code in vi so fast I couldn't keep track of what he was doing; lines were magically repeated, the cursor jumping to just the place where it needed to be to change the next word, creating a virtual symphony of intelligent thought. As the salesman said, "Maybe a Ferrari is too much car for you. Can I interest you in something with an automatic transmission?" vi was invented by the folks who invented UNIX. nuff said. |
|
#20
|
|||
|
|||
|
%s and :prev
% is a shortcut for 1,$
<br> <br> Example: <br> <br> %s/foo/bar/ is equivalent to 1,$s/foo/bar/ <br> <br> Also, when editing multiple files, you can use :previous in addition to :next <br> <br> - Matt |
|
#21
|
|||
|
|||
|
Re: A nice Vi guide
Yes I agree! A very witty beginner's guide to Vi. Detailed and structured. How I wish I had such guides when i was learning many years ago....
|
|
#22
|
|||
|
|||
|
visual mode in standard vi?
I try to get into visual mode in vi installed by my ISP. I type v or V and I get a message telling me that it's not a command. Is visual mode something that I need Vim for?
|
|
#23
|
|||
|
|||
|
move to beginning of line.
How do you move to the beginning of the current line you are on?
|
|
#24
|
|||
|
|||
|
|
|
#25
|
|||
|
|||
|
|
|
#26
|
|||
|
|||
|
Vi 101
Vi 101
Vi is probably the most powerful text editor for *NIX, but if you have ever tried to use it, you probably walked away frustrated. This article walks through all the capabilities and features of Vi - from the basics, such as saving and quitting, to the more advanced topics of searching for strings. Please discuss this article in this thread. You can read the article here . |
|
#27
|
|||
|
|||
|
If you would like to see an article covering a particular topic, please post your request here.
|
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Vi 101 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|