On 4 Apr, [EMAIL PROTECTED] wrote:
> Papano ba ang pag edit? Di ko na ulit natsambahan ang napindo ko.
>
> I tried reading the help file, di ko naintindihan. Slow ako...
>
To be honest, vi drove me crazy the first time I encountered it too.
It takes a lot of getting used to. There are two modes of operation in
vi, one mode which allows you to enter text into the buffer and one
which allows you to move around the buffer. Let's call them edit and
view modes (not sure what the official terminology is). View mode
allows you to move around the buffer by using the 'j' and 'k' keys to
go up and down, and the 'h' and 'l' keys to go left and right. This is
*much* faster than using the arrow keys to navigate (and if you wind
up using vi on a "real" Unix like Solaris or Irix, the arrow keys
really won't work)! You can also issue the ':' commands which do save
(w), load (r), quit (q), search for regular expressions (/) etc. To
enter edit mode you can press 'i', 'a', or 'A' in view mode, and then
start typing text, 'i' causes you to insert text at the cursor
position, 'a' inserts text one character after the cursor position,
while 'A' inserts text at the end of the line. To return to view mode
press Esc. And remember the commands are case-sensitive. Having CAPS
LOCK on while you're in view mode can very quickly corrupt your file!
Actually, I think you might be better served using some other editor
like joe (which uses WordStar key bindings). I myself don't use vi for
anything but trivial editing tasks, like tweaking config files, where
an editor like my personal favorite emacs is overkill.
--
Rafael R. Sevilla <[EMAIL PROTECTED]> +63(2) 8177746 ext. 8311
Programmer, InterdotNet Philippines +63(917) 4458925
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]