Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!rex!uflorida!gatech!purdue!haven!umbc3.umbc.edu!math9.math.umbc.edu!rouben From: rouben@math9.math.umbc.edu (Rouben Rostamian) Newsgroups: comp.editors Subject: Re: line moving while in insert mode Keywords: line moving while in insert mode Message-ID: <1991Apr21.235359.21924@umbc3.umbc.edu> Date: 21 Apr 91 23:53:59 GMT References: <6219@beryl12.UUCP> Sender: newspost@umbc3.umbc.edu (News posting account) Reply-To: rouben@math9.math.umbc.edu.UUCP (Rouben Rostamian) Distribution: comp Organization: Mathematics Department University of Maryland, Baltimore County Lines: 38 [I tried to send this message via mail but it bounced. Sorry.] In article <6219@beryl12.UUCP> you write: >In vi: > >Can the cursor be moved up/down lines while in insert mode? Yes, you can use :map! to define keys in the insert mode. I would not reommend it though, since it goes against the spirit of vi, and any short-term advantages are offset by the long-term handicaps it causes. >Also, '0' doesn't work for me all the time. (get to start of line.) Its >not working for me now (while I'm in nn). What could be causing this? >It also does not work when I edit files in my home directory. It works >any other time I use vi. Any ideas? You won't need to look beyond the first line of your .exrc: >map 0 mz It redefines 0 to mz. Do you mean to do that? In fact, are the keymap definitions in your .exrc intentional? They certainly are strange, and sub-optimal in my opinion. I do no see what is gained by overriding the default definitions of some of vi's most frequently used keys. I would delete the .exrc file if I were you. 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. Hope that this helps. Should you need further explanation, send me an email. -- Rouben Rostamian Telephone: (301) 455-2458 Department of Mathematics and Statistics e-mail: University of Maryland Baltimore County bitnet: rostamian@umbc.bitnet Baltimore, MD 21228, U.S.A. internet: rouben@math9.math.umbc.edu