On Wed, 13 Feb 2002, Cameron Simpson wrote: > On 06:30 12 Feb 2002, rpjday <[EMAIL PROTECTED]> wrote: > | specifically, i was looking at his collection of map! settings, > | which represent sequences of text or editing command available > | while in input mode in vi. > | > | when i edited his .exrc file, here's how a small subset of > | those map! settings are displayed: > | > | map! ^Z ^[:stop^M > | > | map! ^V^[OA ^V^[ka > | map! ^V^[OB ^V^[ja > | > | and so on. > | > | i'm puzzled about the plethora of ^V characters i see displayed. > | i realize that ^V is used when i'm *creating* such a file, so that > | i can literally add characters such as a CR, the ESC key and so on. > | when i tested creating my own small .exrc, i used ^V to add those > | special characters, but when i edit my own .exrc, i don't see all > | of the ^V characters, and i don't expect to, since they were used > | only to facilitate the insertion of *other* characters. > | > | so my question is, is there a reason tom might have all of these > | ^V's embedded in his .exrc file -- some subtle variation of which > | i am unaware. my .exrc seems to work fine the way i've built it. > | anyone have any hints? > > The ^V is also the map quote character. Tom will have typed three ^Vs to get > ^V^[ into his macro - two for the ^v and one for the ^[.
no no no -- i know *how* he got that literal ^V into the file, what i want to know is *why* he put it there, since i created the same map! entry without that leading literal ^V. i don't understand its purpose. when you edit tom's .exrc, you see: map! ^V^OA ^V^[ka when you edit mine, you see: map! ^OA ^ka which seems to work fine. although there is no ^V in my version of the map! entry, i typed one just to quote the next character -- in this case, an arrow key. what tom must have done was to press three ^V's -- the first two to get a literal ^V in the file, the third to quote the next character. i'm still baffled about why he has that literal ^V *in* the file, since it does not appear to be necessary. rday _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list