Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 13th, 2000, 04:51 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
vi vs Vim

You should point out that most of these features require Vim not vi. Otherwise you might confuse some people using the real vi. And yes there are still computers out there that have vi not vim.
Plus it gives Bram M(sp?) the credit he deserves.
:wq

Reply With Quote
  #2  
Old May 13th, 2000, 06:54 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks

Excellent article, I keep learning new stuff about this beast "VI" every day, and can't get enough.
<br>
<br>
I encourage you to go on with VI 301 as well.
<br>
<br>
thanks a lot.
<br>
<br>
Ayman
<br>

Reply With Quote
  #3  
Old May 13th, 2000, 09:13 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
This is VIM!

These features are part of vim, not vi. There are *many* vi clones out there, and there are *many* *nixes that still deliver the original vi (can you say Solaris, AIX). So to say that these are vi features is not acurate.

Having said that, I've been using vim for years and would not ba able to work without it!

Reply With Quote
  #4  
Old May 15th, 2000, 06:09 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
vi rules!

<font color=red>I use vi anytime I can. Thanks for the extra info, have you got a web page I can bookmark about this subject?

Reply With Quote
  #5  
Old May 15th, 2000, 11:53 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
VIM

Right at the top of the very page you are reading, it says, "Note: Most of the material in this article covers vim, the enhanced version of vi that is preinstalled on most modern *NIXes."
<br>
<br>
Any suggestions on how we can make this more clear? :)
<br>
<br>
<br>
<br>
<br>
<br>

Reply With Quote
  #6  
Old May 19th, 2000, 03:51 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: VIM

>>Any suggestions on how we can make this more clear? :)
<br>
<br>
Yes!
<br>
<br>
Reword your title and teaser to say:
<br>
<br>
VIM 201
<br>
In his last class, he taught you the basics of VIM, the powerful *NIX text editor. Now Elias Flootburger returns in this hilarious sequel to the original "VIM 101"(was Vi 101) tutorial. This time, the good professor has his hands full with abbreviations, key mappings, autocommands and VIM's powerful visual mode...not to mention his own out-of-control ego!
<br>
<br>
But then you might not get so many comments ;)
<br>
<br>
Dave

Reply With Quote
  #7  
Old May 24th, 2000, 03:16 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
vi or VIM?

Could someone suggest which is found on which *nix?

Reply With Quote
  #8  
Old August 23rd, 2000, 12:06 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
How to save settings.

Abbreviations, key mappings are nice.
But how to save them. They are lost when you exit vi.

I do not want to reset them every time I enter vi.

Reply With Quote
  #9  
Old August 24th, 2000, 04:17 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: How to save settings.

use macros vs. abbreviations. this is described under the heading "Sweet Revenge" in this tutorial, Vi<em>M</em> 201.

Reply With Quote
  #10  
Old January 4th, 2001, 03:30 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Vi gets better and better

This is one of the best VI tutorials I've seen yet. Friendly, useful, and enlightening. I really loved it and will start using vi alot more often.


Reply With Quote
  #11  
Old July 28th, 2001, 11:20 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
how to get indent from vi working ?

i want to use indent with options 'indent -br -ce' . i maked alias in my bash shell as
alias indent="indent -br -ce" but this doesn't help. thanks.

Reply With Quote
  #12  
Old January 28th, 2002, 05:59 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #13  
Old February 22nd, 2002, 03:49 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #14  
Old July 18th, 2002, 06:12 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Vi 201: The Shell Game

I was unable to get !!bash to work properly (Path problems?) to have the word date replaced with the results of the command date. However, I have used in the past the following:

:r!date

As this will "read - in" (:r) the "execution" (!) of the command "date".

Reply With Quote
  #15  
Old August 13th, 2002, 05:46 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
An old feature I miss

Back in the days of the 2.0.27 kernel, the version of VI that came with Slackware had a feature that everyone seemed to hate. Other even older versions like the one on AT&T SVR4 did the same. If you had the following text

this is the first line

this is the second line

this is the third line


You could place the cursor on the *f* in the word first, type i for insert mode, type "old ", then hit the down arrow. The old vi would place the cursor on the *s* of second, where the new one places it on the *o*.

this is the old first line

this is the **s**econd line (old cursor position)

this is the sec**o**nd line (new cursor position)

What happens is the up and down commands, when typed first after entering new text moves the cursor down, and back to the same column as you started typing on. Sometimes this sucks, but when you are working with columns it is very handy. The new versions just move the cursor down, and make you move it back to the initial column. The old behavior is very powerful when you want to, for example, add *old* in front of each of the numbers in a long column of lines like the ones in this example.

My question, is there any way to make VIM work like the older VI's?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Vi 201


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway