.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

The Falklands War: 1982- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old February 5th, 2007, 02:05 AM
Will's Avatar

Will Will is offline
Lieutenant Colonel
 
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
Will is on a distinguished road
Default Re: OT: VISTA

Quote:
narf poit chez BOOM said:
Quote:
aegisx said:
You don't like Esc-Shift-Z-Z?
Ack! Kill it kill it kill it!!!

Who thought up that key combo? A demented platform fighter addict?
It's actually quite simple. The vi editor was designed to be used in a console window, with complete lack of pointer control (e.g., a mouse... sorry Narf ). So, the ESC key is just to ensure that you are in command-mode (as opposed to text mode, where doing just Shift-Z-Z would insert two capital Zs wherever the cursor happened to be). Then, IIRC, command ZZ writes the buffer if it has changed, and quits.

But really, the only basic commands you need to know to use vi are:
Esc - get into command mode
Then, once you're in command mode:
i - insert: go into text mode, begin inserting characters at the cursor
:w - write: write the buffer to file
q - quit
h - move cursor left
j - move cursor down
k - move cursor up
l - move cursor right
x - delete: delete the character at the cursor

Really just a few days using it are enough to get a feel for the basics, and start into more advanced things like yy (yank, AKA copy), and p (put, AKA paste) to and from buffers, using the /, s/, g/, etc regular expression commands... it's an absolute lifesaver if you're ever going to encounter a variety of UNIX-y systems, since they are all pretty much guaranteed to have either vi or vim installed.

--edit: almost forgot about the other "real" editor Fyron was looking for... even though it doesn't get any more real than vi
Check out the Scintilla Text Editor (SciTE). It's my "notepad replacement" for Windows, it also has a version for linux. Syntax highlighting for several different languages, brace matching, decent settings tweaking available via GUI, much more powerful tweaking through config files, has option for plaintext search/replace as well as regular expression search/replace, and a bunch of other goodies for programmers.
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
Reply With Quote
 

Bookmarks


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:54 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.