Go to Post You must wear safety glasses at all times, so please bring them. - Don Wright [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-12-2002, 14:31
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
vi editor

Ok.. Another question.

What's a vi editor?

I thought that it's a text editor. Right?? If it is, then why just not use notepad?

Thanks
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**

Last edited by Jack : 21-12-2002 at 14:33.
  #2   Spotlight this post!  
Unread 21-12-2002, 14:42
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
vi is an editor that comes standard on a lot (most) unix/linux distributions. When I edit code, I am doing so directly on the web server, so I don't have notepad available to me. I find that I can program faster with vi than any other editor (pico, emacs, etc).

It's a pain to learn.. but once you do you'll never go back.
__________________
Brandon Martus
e-mail
  #3   Spotlight this post!  
Unread 21-12-2002, 15:52
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Yeah, I'm just starting to get the basics down, and it definately does speed stuff up. It's the only editor available on some of the machines I work with, so I was kinda forced into learning it.

The best way I can describe it is that it's a text editor without ANY user interface--not even menus. It works really well over telnet/SSH because of this and doesn't require any fancy graphics packages installed like X, etc.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #4   Spotlight this post!  
Unread 21-12-2002, 16:44
Mongoose's Avatar
Mongoose Mongoose is offline
Registered User
#0948 (Newport Robotics Group (NRG 948))
 
Join Date: Oct 2002
Location: Bellevue, WA
Posts: 45
Mongoose is an unknown quantity at this point
Send a message via AIM to Mongoose
Notepad is Windows only, so you don't get it with any other OSes like Linux, Unix, or MacOS. The thing with vi is that it's console based, but it's waaaaay faster. *BUT* once you get the commands down. Like the others say, t's a pain to learn. For example, when you start it, you don't just start plugging in text right away; you have to change modes first. And some commands are cryptic or not immediately intuitive.

I think it's pronounced vee-eye, and vi stands for VIsual, and it's an improvement over ed, which is an older editor?

If you're really interested, you can sign up for a shell account by telnetting to sdf.lonestar.org and typing "vilearn".

Last edited by Mongoose : 21-12-2002 at 16:47.
  #5   Spotlight this post!  
Unread 23-12-2002, 10:24
Jeremy_Mc's Avatar
Jeremy_Mc Jeremy_Mc is offline
GitHubber
no team
Team Role: Mentor
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Orlando, FL
Posts: 496
Jeremy_Mc will become famous soon enoughJeremy_Mc will become famous soon enough
Don't let that scare you away from editing text with Linux on a server...

There are many more easier to use editors like pico/nano, ee, and a slew of others.

Also, if vi's simplicity doesn't suit your fancy you can try emacs which has an unbelievable amount of features built into it, but some people think it's bloated.

If you need anymore help or have any questions, pm or e-mail me.

Later
__________________
GitHub - Collaborate on code, documentation, etc. - http://github.com
  #6   Spotlight this post!  
Unread 23-12-2002, 11:17
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Jack,

Written in 1976 by Bill Joy at Berkley for BSD, the vi editor was incorporated into System V of UNIX and has been around ever since.

For more information on the history please see:

http://www.cs.pdx.edu/~kirkenda/joy84.html

vi (pronounced "vee eye" and never capitalized) has a plain keyboard interface for every function. As an example: h, j, k and l move the cursor because Teletype interfaces to the old PDP-11, et cetera had no arrow keys.

If you are a Windows person and will infrequently program on UNIX, Linux, et cetera, vi is a bit of a pain to learn and you should not bother. It really takes a few days to get the hang of it.

However, if you want to be a geek (and be proud of it), vi is one of those tools that you will have to master if you want to be taken seriously as a programmer... IMHO.

For a good tutorial from the guy who wrote it, see:

http://docs.freebsd.org/44doc/usd/12....html#section6

Good luck.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #7   Spotlight this post!  
Unread 23-12-2002, 16:15
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Take the time to learn vi, you won't regret it. After learning the commands and becoming familiar with them you'll be able to edit code a lot faster than with a simple editor like notepad or pico. A few quick keystrokes gives you access to simple commands (moving through text, yank & paste, delete) and very powerful commands (repeat, macros, search & replace). The fact that all the commands are on the keyboard instead of menus is what makes it so quick (and of course confusing & difficult to learn), you never have to remove your hands from 'home position.'

I actually never use vi, I've switched to vim, which stands for "vi improved." It comes with most Linux distributions and you can get it for almost any OS at http://www.vim.org It adds GUI support, multiple undo / redo, syntax highlighting, multiple buffers, split screen, visual mode, and a whole lot more. Go download it and try it out.

Mike
  #8   Spotlight this post!  
Unread 23-12-2002, 19:22
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Quote:
Originally posted by Mike Soukup
I actually never use vi, I've switched to vim, which stands for "vi improved." It comes with most Linux distributions and you can get it for almost any OS at http://www.vim.org It adds GUI support, multiple undo / redo, syntax highlighting, multiple buffers, split screen, visual mode, and a whole lot more. Go download it and try it out.

Mike
OH! I forgot, now that we have our own server.. I can install vim on the server. Hooray! Thanks for the reminder.
__________________
Brandon Martus
e-mail
  #9   Spotlight this post!  
Unread 30-12-2002, 16:52
ckim's Avatar
ckim ckim is offline
Registered User
#0694 (Stuy Pulse)
 
Join Date: Dec 2002
Location: New York City
Posts: 14
ckim is an unknown quantity at this point
Send a message via AIM to ckim
vi is great

I believe vi is great. Although emacs provides far more features and many use it religiously. I use vi because it's available in linux and freebsd and other *nix systems I work with. Also vi uses far less system resources. Once you master all the keystrokes it will be a fast easy way to edit files. If you prefer nice color syntaxing for coding I suggest vim. It provide color syntaxing for most of major languages. (c, c++, php, perl, python etc.). To enable it type :syntax on. you can add that to your .vimrc .
__________________
Cristhian D. Kim
cris@cris.cx
www.cris.cx
  #10   Spotlight this post!  
Unread 30-12-2002, 16:57
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
I use(d) 'syntax on' at work for a while, but with our version of vim, it seemed to mess up when you would page through many pages of code. You'd have to go all the way up to the top of the file for it to reset its syntax highlighting. Other than that little fluke, I liked it.

I also like 'set showmatch' which will make the cursor temporarily jump to the opeining parenthesis/brace/bracket/etc you are currently closing.
__________________
Brandon Martus
e-mail
  #11   Spotlight this post!  
Unread 30-12-2002, 17:08
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Wow. I really have to admit, when this thread was started, I thought it'd just turn into another flamewar between vi[m] lovers and emacs lovers. Much to my joy, it hasn't.

I don't know all the intricacies of vi yet, but for practically all of the text editing I do in Linux, I use it.
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #12   Spotlight this post!  
Unread 30-12-2002, 22:50
josh_johnson josh_johnson is offline
Registered User
#1020 (Indiana Prankmonkeys)
 
Join Date: Nov 2002
Location: Muncie, IN
Posts: 58
josh_johnson is an unknown quantity at this point
Send a message via AIM to josh_johnson Send a message via Yahoo to josh_johnson
I tried using vi at one point, but I normally use a dvorak keyboard layout, so the location of many of the keys (e.g. j,k,l,m) make vi even harder and slower for me to use. Because of this, i use emacs whenever I need to do any *nix programming.
  #13   Spotlight this post!  
Unread 30-12-2002, 22:55
ckim's Avatar
ckim ckim is offline
Registered User
#0694 (Stuy Pulse)
 
Join Date: Dec 2002
Location: New York City
Posts: 14
ckim is an unknown quantity at this point
Send a message via AIM to ckim
Heh. I've never tried a dvorak keyboard. I have a qwerty keyboard which I normally use at school. But at home I have a sun type 5 keyboard and a keyboard with a similar layout for my pcs which I find easier to use with vi.
__________________
Cristhian D. Kim
cris@cris.cx
www.cris.cx
  #14   Spotlight this post!  
Unread 30-12-2002, 23:57
josh_johnson josh_johnson is offline
Registered User
#1020 (Indiana Prankmonkeys)
 
Join Date: Nov 2002
Location: Muncie, IN
Posts: 58
josh_johnson is an unknown quantity at this point
Send a message via AIM to josh_johnson Send a message via Yahoo to josh_johnson
Dvorak is a completely different layout from the qwerty style. The keys are arranged so typing is quicker. I can type a little faster with it than I can with a qwerty and I am still trying to learn to type faster with it.
Dvorak Keyboard Layout
  #15   Spotlight this post!  
Unread 31-12-2002, 08:42
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Quote:
Originally posted by josh_johnson
Dvorak is a completely different layout from the qwerty style. The keys are arranged so typing is quicker. I can type a little faster with it than I can with a qwerty and I am still trying to learn to type faster with it.
Dvorak Keyboard Layout
Whether Dvorak is actually a faster keyboard layout is rather controversial. I've never seen any good evidence that it is (too much of it is anecdotal). It is supposed to be better on your wrists but I think an ergonomic keyboard is a better solution there.

Matt
Closed Thread


Thread Tools
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Impending BASIC Stamp Editor Beta 2 release Greg Ross Programming 9 19-09-2003 06:05
White Paper Discuss: FIRST Editor v1.2 Source CD47-Bot Extra Discussion 1 18-09-2003 19:34
White Paper Discuss: FIRST Editor v1.2 CD47-Bot Extra Discussion 1 18-09-2003 19:32
White Paper Discuss: FIRST Editor (v1.1) CD47-Bot Extra Discussion 7 17-09-2003 19:07
FIRST Editor v1.0 Raven_Writer Programming 0 12-09-2003 16:23


All times are GMT -5. The time now is 02:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi