Re: Something is messing up a simple mapping.

2009-11-25 Thread Jan-Herbert Damm
Chris Jones wrote on 24.11.09: What started this in the first place, is that a couple of months ago, I decided to tidy up my .vimrc and among many other different things I blissfully decided to change: [...] thanks for the instructive lesson on small causes and big effects! jan

Re: Something is messing up a simple mapping.

2009-11-24 Thread Charles Campbell
Chris Jones wrote: I have this in my .vimrc: nmap Space iSpaceEsc It lets me enter spaces without leaving normal mode. Or used to .. Fairly recently, this stopped working as expected: What happens if I hit space in normal mode, is that vim inserts an unlimited number of spaces,

Re: Something is messing up a simple mapping.

2009-11-24 Thread Chris Jones
On Tue, Nov 24, 2009 at 03:03:52PM EST, Charles Campbell wrote: Chris Jones wrote: I have this in my .vimrc: nmap Space iSpaceEsc [..] This map looks quite recursive; the iSpace invokes the map again (recursively), and repeats ad infinitum. Seems to me you want a no-remap; try

Re: Something is messing up a simple mapping.

2009-11-23 Thread Jürgen Krämer
Hi, Chris Jones wrote: As recommended (and after having read the relevant bits in the manual, in particular usr_40.txt, I tried to change the mapping to: nnoremap Space iSpaceEsc I started a vim instance, and saw that this had taken care of the crazy animation, only one space is now

Re: Something is messing up a simple mapping.

2009-11-23 Thread Chris Jones
On Mon, Nov 23, 2009 at 04:25:46AM EST, Jürgen Krämer wrote: Excellent catch! you don't have 12 spaces after your nnoremap command, do you? I.e., :nnoremap Space iSpaceEsc My mistake, there are thirteen of them :-) where every underscore means a literal space character. If

Re: Something is messing up a simple mapping.

2009-11-23 Thread Jürgen Krämer
Hi, Chris Jones wrote: Now, let me read all about the 's' in 'set whichwrap' and see if I can get rid of it - since I'd rather like to keep a comment in my .vimrc, like so: nnoremap Space iSpaceEsc what this does.. it's best to never write a comment after a mapping -- just

Re: Something is messing up a simple mapping.

2009-11-23 Thread Chris Jones
On Mon, Nov 23, 2009 at 05:30:55AM EST, Jürgen Krämer wrote: [..] nnoremap Space iSpaceEsc what this does.. it's best to never write a comment after a mapping -- just put it in a separate line above or below. That habit of mine is going to be difficult to break. Apart from

Something is messing up a simple mapping.

2009-11-22 Thread Chris Jones
I have this in my .vimrc: nmap Space iSpaceEsc It lets me enter spaces without leaving normal mode. Or used to .. Fairly recently, this stopped working as expected: What happens if I hit space in normal mode, is that vim inserts an unlimited number of spaces, apparently one at a time. I

Re: Something is messing up a simple mapping.

2009-11-22 Thread sc
On Sunday 22 November 2009 11:06:05 pm Chris Jones wrote: I have this in my .vimrc: nmap Space iSpaceEsc It lets me enter spaces without leaving normal mode. Or used to .. Fairly recently, this stopped working as expected: What happens if I hit space in normal mode, is that vim

Re: Something is messing up a simple mapping.

2009-11-22 Thread bill lam
On Mon, 23 Nov 2009, Chris Jones wrote: I have this in my .vimrc: nmap Space iSpaceEsc Did you mean nnoremap? -- regards, GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3