> 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 endings will work on all platforms, but DOS line endings
> will not work on Unix machines.
>
> Try opening it and doing :set ff=unix and then :w to ensure it has Unix
> line endings and see if that helps. (Be sure to restart Vim after doing
> it, as .vimrc is read at startup.)
>
> Another possibility...because you copy/pasted it from the web, maybe
> it's got some non-breaking spaces or something like that in it, rather
> than normal spaces. Put your cursor on a few spaces and press ga and
> check Vim tells you < > 32, Hex 20, Octal 040. Check spaces used for
> indenting as well as those used between tokens in the script.
>
> Ben.

My ~/.vimrc file is in unix format already.

I was doing f<Space> and I noticed that vim did not jump
to one specific 'space' (of course, that was not a space).

'ga' then showed < > 160, Hex 00a0, Octal 240 between 'gtpl' and
':call'
in the first line of  that code. The same thing between 'silent' and '!
echo'.

I replaced those with a 'real' white space and it is working
wonderfully well now.

Just one more thing because  it seems very
intriguing to me: did you copy/paste the code to
your vimrc or typed it in? I copied mine from firefox
and pasted with "+p. Then visually selected it and did =.

Thanks a lot for your help and for your time.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to