Backslash in maps

2006-04-27 Thread Suresh Govindachar
Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') How would it be fixed? Thanks, --Suresh

Re: Backslash in maps

2006-04-27 Thread Gerald Lai
On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') How would it be fixed? What do you intend to do with the mapping? First, replace all |

Re: Backslash in maps

2006-04-27 Thread Suresh Govindachar
Gerald Lai sent on Thu, 27 Apr 2006 17:44:05 -0700 (PDT): On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let @a=substitute(getline('.'),'\(^.*|\s*\)\|\(\s\s*$\)','','g') Note

Re: Backslash in maps

2006-04-27 Thread Gary Johnson
On 2006-04-28, Suresh Govindachar [EMAIL PROTECTED] wrote: Gerald Lai sent on Thu, 27 Apr 2006 17:44:05 -0700 (PDT): On Thu, 27 Apr 2006, Suresh Govindachar wrote: Hello, Why does the following _single_ line map generate the E10 error?: nmap space :let