TIP: Click on subject to list as thread! ANSI
echo: qedit
to: ALL
from: `Y.T.LIM - ERICSSON`
date: 1997-07-01 01:59:00
subject: vi experience

From: "Y.T.Lim - Ericsson" 
This forum seems to be pretty quiet for a while. I would like to throw 
something in for discussion. Everyone who has something to do with Unix
would have had to learn vi at some stage. Vi appears to be very awkward to 
use initially especially if you come from a Dos platform and are already 
familiar with Qedit/TSE. However, once you get to know vi, it's really 
very fast and very economic with key strokes.
TSE and vi are two different types of editors, vi operates in modes and 
TSE doesn't. I think the TSE's cut/paste into named buffers can be 
simplified by implementing some of the vi commands:
(1) "ayw  - copy word at cursor in buffer a(buffer can be from a-z)
(2) "ayy  - copy current line to buffer a
(3) "ayb  - copy marked block to buffer a. This is NOT a vi command as
            vi treats block differently
If we replace replace "y"(yank) with "d", then the commands above will
work for cut.
To paste, "p" is used to paste after current line, and "P" for before
current line. These are just examples of some vi commands.
(1) "ap  - paste from buffer a after current line
(2) "aP  - paste from buffer a before current line
The commands above can be implemented easily as macros by first using
Ask() to get the a command and then parse it for appropriate actions.
We can treat these as shortcuts in TSE without changing anything. I
guess this is an alternative to the nice but slow menu options. This
will also cut down key bindings for various tasks.
Just some thoughts. Feel free to comment.
/Y.T.
 
---
---------------
* Origin: apana>>>>>fidonet [sawasdi.apana.org.au] (3:800/846.13)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.