Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!ftpbox!motsrd!motcid!mostek From: mostek@motcid.UUCP (Frank B. Mostek) Newsgroups: comp.editors Subject: Re: line moving while in insert mode Keywords: line moving while in insert mode Message-ID: <6259@beryl12.UUCP> Date: 23 Apr 91 20:57:56 GMT References: <6219@beryl12.UUCP> <1991Apr21.235359.21924@umbc3.umbc.edu> Distribution: comp Organization: Motorola Inc., Cellular Infrastructure Div., Arlington Heights, IL Lines: 31 rouben@math9.math.umbc.edu (Rouben Rostamian) writes: >In article <6219@beryl12.UUCP> you write: >You won't need to look beyond the first line of your .exrc: >>map 0 mz These mappings help me with cut and paste. The control chars did not get displayed. The actual map is: map CTRL-VPause mz #map Pause key in Sun keyboard map CTRL-VPrSc "wy`z map CTRL-VSLB "wP Also, there were some newlines in there... >The reason that the strange definitions in your .exrc do not handicap you >in directories other than the home directory, is that your environment >most probably includes a EXINIT variable. Whenever EXINIT is defined, >vi skips .exrc, except when .exrc is in the current directory. I find these mappings very helpful, and they do work in other directories, i.e., EXINIT is not defined in my environment. However, the 0 does work when I move the .exrc file, so I changed the key to one that does not contain a 0 in its control sequence, and that fixed the problem. It's still a mystery why the problem only occurred in the home directory, i.e., why did the mappings work, but the 0 did not get erroneously mapped? -- Frank Mostek uunet!motcid!amethyst!mostek (708)632-7191 mostek@amethyst.mot.com