is "vi" retarded?

Questions about applications and software
Forum rules
Before you post please read how to get help

is "vi" retarded?

Postby felipe1982 on Tue Jun 24, 2008 10:19 pm

1) touch file1
2) vi file1
3) press "i" on keyboard
4) press keyboard arrows (up/down/left/right). Letters A->D should start to appear.

do the same, but in step 2) use "vim" in place of "vi". Problem goes away. confused! (Elyssa btw)
felipe1982
Level 2
Level 2
 
Posts: 52
Joined: Sun Nov 25, 2007 6:40 pm
Location: Brisbane, Australia

Linux Mint is funded by ads and donations.
 

Re: is "vi" retarded?

Postby miket on Wed Jun 25, 2008 3:22 am

Hi !

felipe1982 wrote:1) touch file1
2) vi file1
3) press "i" on keyboard
4) press keyboard arrows (up/down/left/right). Letters A->D should start to appear.

do the same, but in step 2) use "vim" in place of "vi". Problem goes away. confused! (Elyssa btw)


Vi isn't retarded at all, it is an extremely powerful editor !
To move around use the h,j,k,l keys when not in insert mode.

I've been using vi for over 20 years without a problem ... you're just suffering from lack of "vi" experience :)

Mike.
User avatar
miket
Level 5
Level 5
 
Posts: 524
Joined: Tue Mar 04, 2008 5:50 am
Location: UK & France

Re: is "vi" retarded?

Postby ed@Mint on Wed Jun 25, 2008 9:26 am

All keyboard didn't have arrow keys back when vi was created :wink:
Interresting read : http://www.truth.sk/vim/vimbook-OPL.pdf
In libro veritas

Now switched to : ArchLinux

New users, read the Linux Mint User Guide | Problem ? See the Wiki first | Check out the Software Portal | Join the IRC channel : #linuxmint @ irc.spotchat.org
User avatar
ed@Mint
Level 5
Level 5
 
Posts: 565
Joined: Sun Mar 09, 2008 6:03 pm
Location: Liege, Belgium

Re: is "vi" retarded?

Postby felipe1982 on Wed Jun 25, 2008 12:06 pm

felipe@mint ~ $ which {vi,vim} | xargs ls -l
lrwxrwxrwx 1 root root 20 2008-06-15 18:32 /usr/bin/vi -> /etc/alternatives/vi
lrwxrwxrwx 1 root root 21 2008-06-15 18:32 /usr/bin/vim -> /etc/alternatives/vim
felipe@mint ~ $ md5sum /usr/bin/vi /usr/bin/vim /etc/alternatives/vi /etc/alternatives/vim
a559a2cc3f9824e57e017a91497909b5 /usr/bin/vi
a559a2cc3f9824e57e017a91497909b5 /usr/bin/vim
a559a2cc3f9824e57e017a91497909b5 /etc/alternatives/vi
a559a2cc3f9824e57e017a91497909b5 /etc/alternatives/vim
felipe@mint ~ $

* they are all the same. Why do they act differently when invoked as "vi" or "vim"?
felipe1982
Level 2
Level 2
 
Posts: 52
Joined: Sun Nov 25, 2007 6:40 pm
Location: Brisbane, Australia

Re: is "vi" retarded?

Postby miket on Wed Jun 25, 2008 3:48 pm

Hi Felipe !

felipe1982 wrote:felipe@mint ~ $ which {vi,vim} | xargs ls -l
lrwxrwxrwx 1 root root 20 2008-06-15 18:32 /usr/bin/vi -> /etc/alternatives/vi
lrwxrwxrwx 1 root root 21 2008-06-15 18:32 /usr/bin/vim -> /etc/alternatives/vim
felipe@mint ~ $ md5sum /usr/bin/vi /usr/bin/vim /etc/alternatives/vi /etc/alternatives/vim
a559a2cc3f9824e57e017a91497909b5 /usr/bin/vi
a559a2cc3f9824e57e017a91497909b5 /usr/bin/vim
a559a2cc3f9824e57e017a91497909b5 /etc/alternatives/vi
a559a2cc3f9824e57e017a91497909b5 /etc/alternatives/vim
felipe@mint ~ $

* they are all the same. Why do they act differently when invoked as "vi" or "vim"?


Basically, "vim" is an enhanced version of "vi" but is backwards compatible when called by it's old name ;)

Two programs in one, caters for the "Old Timers" like me who have always used "vi" and the new adventurers to UNIX who know it as "vim"...
Either way it's a great editor which I will use until I pop my clogs :D

Mike.
User avatar
miket
Level 5
Level 5
 
Posts: 524
Joined: Tue Mar 04, 2008 5:50 am
Location: UK & France

Re: is "vi" retarded?

Postby felipe1982 on Wed Jun 25, 2008 4:35 pm

Ok. I see now. Different invocations make "vi" and "vim" behave differently. Besides having up/down/left/right arrows add letters A, B, C, D to my documents, what else comes to mind?
felipe1982
Level 2
Level 2
 
Posts: 52
Joined: Sun Nov 25, 2007 6:40 pm
Location: Brisbane, Australia

Re: is "vi" retarded?

Postby miket on Wed Jun 25, 2008 4:53 pm

Hi Felipe !

felipe1982 wrote:Ok. I see now. Different invocations make "vi" and "vim" behave differently. Besides having up/down/left/right arrows add letters A, B, C, D to my documents, what else comes to mind?


Vim is able to have more than one document open at a time in "Windows" ... I use the term lightly ... unlike vi ... where you swap between files ....
There are many differences .... have a look at This Site for more information.

Mike.
User avatar
miket
Level 5
Level 5
 
Posts: 524
Joined: Tue Mar 04, 2008 5:50 am
Location: UK & France

Re: is "vi" retarded?

Postby felipe1982 on Wed Jun 25, 2008 5:17 pm

thanks

vi isn't retarded
felipe1982
Level 2
Level 2
 
Posts: 52
Joined: Sun Nov 25, 2007 6:40 pm
Location: Brisbane, Australia

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 15 guests