🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2450

where no vi has gone before...?

#2450
From: Vinay Kashyap
Date: Mon, 16 Nov 1992 04:41
56 lines
2886 bytes
I have this list of questions (problems/wishes/...) on vi, and wonder
if anyone has come across similar occurances.  If so, please email me,
and I will post a summary.

(I am using X11R5, 
tcsh 5.20.02 (Cornell) 12/07/90 options 8b,nls,el,dl,al,dir
on Sun Sparc)

1. I keep a list of macros in a file and pick them up by first going to
   the file with :e <file> and then moving to the necessary map and
   typing (the equivalent of) "aY@a (this is mapped to a key...)
   The problem is that the following map does not work, while all the
   others do:
   :map [f :!echo -n "^V^[]2;%^G"^V^M^V^M
   (where ^V is ctrl-V, ^[ is ESC, ^G is ctrl-G, and this is exactly what
   it LOOKS like from inside vi)
   upon typing "aY@a on this line, the echo sequence is mapped to [f
   (looks perfect when you do a :map)
   now, if I type [f in command mode (and provided that I am using
   xterm) the name of the file should be echoed on the titlebar.
   however, it exits with the error
   Unmatched ".
   and does nothing.
   On the other hand, if I were to actually type
   :!echo -n "^[]2;%^G"^M^M
   (with the necessary ^V before ESC) it works as expected.
   What is missing here?

2. Is there a simple macro that yanks text from a marked position up
   to and INCLUDING the cursor position?  The method should work even
   for end-of-line characters.

3. Is there a way to prepend or append characters to macros without
   (a) introducing newlines between the additions, &/or
   (b) writing to the file and deleting to a named buffer

4. Typing ^G or :se nu in the command mode tells us the line number
   the cursor is on.  Are there equivalent commands/macros that tell
   us the column number?

5. I recently read on the net that someone has a macro that can extract
   a rectangle.  I would like more information on it, please.

6. For some reason, I cannot get the <ctrl-SPACE> (^@) to echo on my
   terminal.  Nor in vi.  Every time I try, a beep is emanated, and
   nothing happens.  It is not mapped to anything that I can see.  Is
   this a tcsh 'feature'?  Why does it not echo with a preceding ^V in
   vi?

7. Similar to the previous question: Can I echo mouse keyclicks on the
   command line, and/or can I map them in vi?

8. Is it at all possible to position the cursor by clicking with the
   mouse?

Vinay (kashyap@oddjob.uchicago.edu)
Technical Details
Message-ID: <1992Nov16.044152.27799@midway.uchicago.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!linac!uchinews!oddjob.uchicago.edu!kashyap

Show Full Headers
Complete Article Headers
Newsgroups: comp.editors,comp.unix.questions,comp.editors
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!linac!uchinews!oddjob.uchicago.edu!kashyap
From: kashyap@oddjob.uchicago.edu (Vinay Kashyap)
Subject: where no vi has gone before...?
Message-ID: <1992Nov16.044152.27799@midway.uchicago.edu>
Summary: questions on vi use
Sender: news@uchinews.uchicago.edu (News System)
Organization: U. of Chicago, Astronomy and Astrophysics
Date: Mon, 16 Nov 1992 04:41:52 GMT
Lines: 56