Re: MozRepl + vim

2011-03-11 Thread Fernando Basso
Now I found one more problem. It happened three times already, when I :write, Vim just hangs and there is nothing else I can do unless to kill Vim's process. Also, when this happens, CPU usage goes from 50% to 95%. I tried waiting a long time before killing Vim's process to see if it would

Re: MozRepl + vim

2011-03-11 Thread Christian Brabandt
On Thu, March 10, 2011 5:38 pm, Benjamin R. Haskell wrote: match WhiteSpaceError /[\x0b\x0c\u00a0\u1680\u180e\u2000-\u200a\u2028\u202f\u205f\u3000]/ Also adding Zero-Width No-Breaking space (a.k.a. BOM) (might not want to add this if you use any variant of UTF-16 on a regular basis): match

Re: MozRepl + vim

2011-03-10 Thread Fernando Basso
OK. That looks fine. I even tried putting it in my .vimrc and it seems to work. I can't explain the error message. There's nowhere in that script that Refresh_firefox is attempted to be used like a command. My next-best guess is then that it has inappropriate line endings. IIRC, Unix line

Re: MozRepl + vim

2011-03-10 Thread Ben Schmidt
On 10/03/11 9:50 PM, Fernando Basso wrote: I was doing fSpace and I noticed that vim did not jump to one specific 'space' (of course, that was not a space). 'ga' then showed160, Hex 00a0, Octal 240 between 'gtpl' and ':call' in the first line of that code. The same thing between 'silent'

Re: MozRepl + vim

2011-03-10 Thread Benjamin R. Haskell
On Thu, 10 Mar 2011, Ben Schmidt wrote: On 10/03/11 9:50 PM, Fernando Basso wrote: I was doing fSpace and I noticed that vim did not jump to one specific 'space' (of course, that was not a space). 'ga' then showed160, Hex 00a0, Octal 240 between 'gtpl' and ':call' in the first line of

Re: MozRepl + vim

2011-03-10 Thread Fernando Basso
On Mar 10, 1:38 pm, Benjamin R. Haskell v...@benizi.com wrote: On Thu, 10 Mar 2011, Ben Schmidt wrote: On 10/03/11 9:50 PM, Fernando Basso wrote: I was doing fSpace  and I noticed that vim did not jump to one specific 'space' (of course, that was not a space). 'ga' then showed    160,

RE: MozRepl + vim

2011-03-10 Thread John Beckett
Ben Schmidt wrote: It's annoying that it should get copied from Firefox at all, though. I wonder if that's a problem we can address on the Wiki, as it's going to cause a lot of users really confusing problems if when they copy+paste code it has a bunch of invisible things causing errors! I

Re: MozRepl + vim

2011-03-10 Thread Ben Schmidt
On 11/03/11 9:42 AM, John Beckett wrote: Ben Schmidt wrote: It's annoying that it should get copied from Firefox at all, though. I wonder if that's a problem we can address on the Wiki, as it's going to cause a lot of users really confusing problems if when they copy+paste code it has a bunch

MozRepl + vim

2011-03-09 Thread Fernando Basso
I installed MozRepl in Firefox from here: https://github.com/bard/mozrepl/wiki And gnu-netcat is also installed and working. This page: http://vim.wikia.com/wiki/Refresh_Firefox_%28preserving_scroll%29_on_Vim_save,_using_MozRepl ...shows and example function, that I just copied and pasted

Re: MozRepl + vim

2011-03-09 Thread Fernando Basso
On Mar 9, 7:24 pm, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: On 10/03/11 4:09 AM, Fernando Basso wrote: I installed MozRepl in Firefox from here: https://github.com/bard/mozrepl/wiki And gnu-netcat is also installed and working. This page:

Re: MozRepl + vim

2011-03-09 Thread Ben Schmidt
...shows and example function, that I just copied and pasted inside $HOME/.vimrc (arch linux). When I try to :write an .html file I get this error: Error detected while processing BufWriteCmd Auto commands for *.html: E492: Not an editor command: Refresh_firefox() Thanks for the reply. This