Errors with Vim 7.1 on Windows

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors with Vim 7.1 on Windows

Poojan Wagh
Error detected while processing C:\Program Files\vim\vim71\ftplugin\vo_base.vim:

line  664:
E121: Undefined variable: g:vo_modules_load
E15: Invalid expression: g:vo_modules_load . ':'
line  665:
E121: Undefined variable: s:tmp
E116: Invalid arguments for function stridx(s:tmp, ':')
E15: Invalid expression: stridx(s:tmp, ':')
line  667:
E121: Undefined variable: s:idx
E15: Invalid expression: (s:idx != -1)

Please help.

:version
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 25 2008 14:50:37)
MS-Windows 32 bit GUI version with OLE support
Included patches: 1-241
Compiled by [hidden email]
Big version with GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path
+folding -footer +gettext/dyn -hangul_input +iconv/dyn +insert_expand +jumplist
 +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu
+mksession +modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang
+mzscheme/dyn +netbeans_intg +ole -osfiletype +path_extra +perl/dyn -postscript
 +printer -profile +python/dyn +quickfix +reltime +rightleft +ruby/dyn
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white +tcl/dyn -tgetent -termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
-xfontset -xim -xterm_save -xpm_w32
  system vimrc file: "$VIM\vimrc"
    user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$VIM\_vimrc"
     user exrc file: "$HOME\_exrc"

--
Poojan
_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Errors with Vim 7.1 on Windows

Steve Litt
I don't have Windows, but I'd start by finding out the context in which
vo_modules_load is used:

[slitt@mydesk .vim]$ grep -irl vo_modules_load *
ftplugin/vo_base.vim.org
ftplugin/vo_base.vim
ftplugin/vo_base.vim~
[slitt@mydesk .vim]$ grep -ir vo_modules_load ftplugin/vo_base.vim
let s:tmp = g:vo_modules_load . ':'
[slitt@mydesk .vim]$ cd ..
[slitt@mydesk ~]$ grep vo_modules_load .vimoutlinerrc
let g:vo_modules_load = "checkbox:hoist"
[slitt@mydesk ~]$

Looks to me like you might need to define g:vo_modules_load in .vimoutlinerrc,
even if you define it as an empty string.

Everyone -- what does Poojan use, on Windows, to do what grep does?

SteveT

On Friday 08 February 2008 10:34, Poojan Wagh wrote:

> Error detected while processing C:\Program
> Files\vim\vim71\ftplugin\vo_base.vim:
>
> line  664:
> E121: Undefined variable: g:vo_modules_load
> E15: Invalid expression: g:vo_modules_load . ':'
> line  665:
> E121: Undefined variable: s:tmp
> E116: Invalid arguments for function stridx(s:tmp, ':')
> E15: Invalid expression: stridx(s:tmp, ':')
> line  667:
> E121: Undefined variable: s:idx
> E15: Invalid expression: (s:idx != -1)
>
> Please help.
>
> :version
>
> VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 25 2008 14:50:37)
> MS-Windows 32 bit GUI version with OLE support
> Included patches: 1-241
> Compiled by [hidden email]
> Big version with GUI.  Features included (+) or not (-):
> +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
> +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
> +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui +diff
> +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
> +file_in_path +find_in_path +folding -footer +gettext/dyn -hangul_input
> +iconv/dyn +insert_expand +jumplist +keymap +langmap +libcall +linebreak
> +lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse
> +mouseshape +multi_byte_ime/dyn +multi_lang +mzscheme/dyn +netbeans_intg
> +ole -osfiletype +path_extra +perl/dyn -postscript +printer -profile
> +python/dyn +quickfix +reltime +rightleft +ruby/dyn +scrollbind +signs
> +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
> +tag_old_static -tag_any_white +tcl/dyn -tgetent -termresponse +textobjects
> +title +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
> +viminfo +vreplace +wildignore +wildmenu +windows +writebackup -xfontset
> -xim -xterm_save -xpm_w32
>   system vimrc file: "$VIM\vimrc"
>     user vimrc file: "$HOME\_vimrc"
>  2nd user vimrc file: "$VIM\_vimrc"
>      user exrc file: "$HOME\_exrc"
_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Errors with Vim 7.1 on Windows

Noel Henson
In reply to this post by Poojan Wagh
On Friday 08 February 2008, Poojan Wagh wrote:

> Error detected while processing C:\Program
> Files\vim\vim71\ftplugin\vo_base.vim:
>
> line  664:
> E121: Undefined variable: g:vo_modules_load
> E15: Invalid expression: g:vo_modules_load . ':'
> line  665:
> E121: Undefined variable: s:tmp
> E116: Invalid arguments for function stridx(s:tmp, ':')
> E15: Invalid expression: stridx(s:tmp, ':')
> line  667:
> E121: Undefined variable: s:idx
> E15: Invalid expression: (s:idx != -1)
>
> Please help.
>
> :version
>
> VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 25 2008 14:50:37)
> MS-Windows 32 bit GUI version with OLE support
> Included patches: 1-241
> Compiled by [hidden email]
> Big version with GUI.  Features included (+) or not (-):
> +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
> +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
> +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui
> +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
> +farsi +file_in_path +find_in_path +folding -footer +gettext/dyn
> -hangul_input +iconv/dyn +insert_expand +jumplist +keymap +langmap
> +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
> +modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang
> +mzscheme/dyn +netbeans_intg +ole -osfiletype +path_extra +perl/dyn
> -postscript +printer -profile +python/dyn +quickfix +reltime +rightleft
> +ruby/dyn +scrollbind +signs +smartindent -sniff +statusline
> -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white
> +tcl/dyn -tgetent -termresponse +textobjects +title +toolbar
> +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
> +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim
> -xterm_save -xpm_w32
>   system vimrc file: "$VIM\vimrc"
>     user vimrc file: "$HOME\_vimrc"
>  2nd user vimrc file: "$VIM\_vimrc"
>      user exrc file: "$HOME\_exrc"


It sounds like your _vimoutlinerrc file is missing. It should be in the
same directory as your _vimrc file.

Noel

--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Errors with Vim 7.1 on Windows

Poojan Wagh
Ineed my vimoutliner was missing. Also, I found that $HOME didn't
refer to C:\Programs Files\Vim for some reason. Instead, $VIM did.
Anyway, the attached .zip file (unzipped into c:\Programs Files\Vim)
is the results of all my edits (mainly replacing $HOME with $VIM and
enabling some disabled runtime commands). I used a fresh install of
Vim 7.0.

On Feb 8, 2008 12:39 PM, Noel Henson <[hidden email]> wrote:

>
> On Friday 08 February 2008, Poojan Wagh wrote:
> > Error detected while processing C:\Program
> > Files\vim\vim71\ftplugin\vo_base.vim:
> >
> > line  664:
> > E121: Undefined variable: g:vo_modules_load
> > E15: Invalid expression: g:vo_modules_load . ':'
> > line  665:
> > E121: Undefined variable: s:tmp
> > E116: Invalid arguments for function stridx(s:tmp, ':')
> > E15: Invalid expression: stridx(s:tmp, ':')
> > line  667:
> > E121: Undefined variable: s:idx
> > E15: Invalid expression: (s:idx != -1)
> >
> > Please help.
> >
> > :version
> >
> > VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 25 2008 14:50:37)
> > MS-Windows 32 bit GUI version with OLE support
> > Included patches: 1-241
> > Compiled by [hidden email]
> > Big version with GUI.  Features included (+) or not (-):
> > +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
> > +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
> > +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui
> > +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
> > +farsi +file_in_path +find_in_path +folding -footer +gettext/dyn
> > -hangul_input +iconv/dyn +insert_expand +jumplist +keymap +langmap
> > +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
> > +modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang
> > +mzscheme/dyn +netbeans_intg +ole -osfiletype +path_extra +perl/dyn
> > -postscript +printer -profile +python/dyn +quickfix +reltime +rightleft
> > +ruby/dyn +scrollbind +signs +smartindent -sniff +statusline
> > -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white
> > +tcl/dyn -tgetent -termresponse +textobjects +title +toolbar
> > +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
> > +vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim
> > -xterm_save -xpm_w32
> >   system vimrc file: "$VIM\vimrc"
> >     user vimrc file: "$HOME\_vimrc"
> >  2nd user vimrc file: "$VIM\_vimrc"
> >      user exrc file: "$HOME\_exrc"
>
>
> It sounds like your _vimoutlinerrc file is missing. It should be in the
> same directory as your _vimrc file.
>
> Noel
>
> --
>
> ------------------------------------------------------------------
>   Noel Henson
>   www.noels-lab.com     Chips, firmware and embedded systems
>   www.vimoutliner.org   Work fast. Think well.
>
>
> _______________________________________________
> VimOutliner mailing list
> [hidden email]
> http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
>


--
Poojan

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner

vimoutliner_WinXP_Vim70.zip (71K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Errors with Vim 7.1 on Windows

Noel Henson
Poojan,

Thanks for the information. As a design goal, supporting Windows wasn't
even considered.  It works, but it takes some extra effort.  I hope to fix
this when I get
the time to release VO 4.0.

Are you fully up-and-running?

Noel

On Friday 08 February 2008, Poojan Wagh wrote:

> Ineed my vimoutliner was missing. Also, I found that $HOME didn't
> refer to C:\Programs Files\Vim for some reason. Instead, $VIM did.
> Anyway, the attached .zip file (unzipped into c:\Programs Files\Vim)
> is the results of all my edits (mainly replacing $HOME with $VIM and
> enabling some disabled runtime commands). I used a fresh install of
> Vim 7.0.
>
> On Feb 8, 2008 12:39 PM, Noel Henson <[hidden email]> wrote:
> > On Friday 08 February 2008, Poojan Wagh wrote:
> > > Error detected while processing C:\Program
> > > Files\vim\vim71\ftplugin\vo_base.vim:
> > >
> > > line  664:
> > > E121: Undefined variable: g:vo_modules_load
> > > E15: Invalid expression: g:vo_modules_load . ':'
> > > line  665:
> > > E121: Undefined variable: s:tmp
> > > E116: Invalid arguments for function stridx(s:tmp, ':')
> > > E15: Invalid expression: stridx(s:tmp, ':')
> > > line  667:
> > > E121: Undefined variable: s:idx
> > > E15: Invalid expression: (s:idx != -1)
> > >
> > > Please help.
> > >
> > > :version
> > >
> > > VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 25 2008 14:50:37)
> > > MS-Windows 32 bit GUI version with OLE support
> > > Included patches: 1-241
> > > Compiled by [hidden email]
> > > Big version with GUI.  Features included (+) or not (-):
> > > +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
> > > +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
> > > +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui
> > > +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra
> > > +extra_search +farsi +file_in_path +find_in_path +folding -footer
> > > +gettext/dyn -hangul_input +iconv/dyn +insert_expand +jumplist
> > > +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
> > > +menu +mksession +modify_fname +mouse +mouseshape
> > > +multi_byte_ime/dyn +multi_lang +mzscheme/dyn +netbeans_intg +ole
> > > -osfiletype +path_extra +perl/dyn -postscript +printer -profile
> > > +python/dyn +quickfix +reltime +rightleft +ruby/dyn +scrollbind
> > > +signs +smartindent -sniff +statusline -sun_workshop +syntax
> > > +tag_binary +tag_old_static -tag_any_white +tcl/dyn -tgetent
> > > -termresponse +textobjects +title +toolbar +user_commands +vertsplit
> > > +virtualedit +visual +visualextra +viminfo +vreplace +wildignore
> > > +wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32
> > >   system vimrc file: "$VIM\vimrc"
> > >     user vimrc file: "$HOME\_vimrc"
> > >  2nd user vimrc file: "$VIM\_vimrc"
> > >      user exrc file: "$HOME\_exrc"
> >
> > It sounds like your _vimoutlinerrc file is missing. It should be in
> > the same directory as your _vimrc file.
> >
> > Noel
> >
> > --
> >
> > ------------------------------------------------------------------
> >   Noel Henson
> >   www.noels-lab.com     Chips, firmware and embedded systems
> >   www.vimoutliner.org   Work fast. Think well.
> >
> >
> > _______________________________________________
> > VimOutliner mailing list
> > [hidden email]
> > http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner



--

------------------------------------------------------------------
  Noel Henson
  www.noels-lab.com Chips, firmware and embedded systems
  www.vimoutliner.org Work fast. Think well.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Errors with Vim 7.1 on Windows

Poojan Wagh
Yup: fully up and running. Upon looking into it further (using my home
computer), I found that vim on Windows for some reason sets $HOME to
be $HOMEDRIVE:$HOMEPATH. In my case, at work, this was set to H:\ for
some reason. So, I guess I could have (and probably should have)
installed all the files into H:\vimfiles (for example). However,
H:\vimfiles didn't exist initially and I didn't know to look for it
there. (It is also a curious feature of vim for windows to rename what
normally would be .vim to vimfiles.)

(Sigh) Windows.

On Feb 9, 2008 12:08 AM, Noel Henson <[hidden email]> wrote:

> Poojan,
>
> Thanks for the information. As a design goal, supporting Windows wasn't
> even considered.  It works, but it takes some extra effort.  I hope to fix
> this when I get
> the time to release VO 4.0.
>
> Are you fully up-and-running?
>
> Noel
>
>
> On Friday 08 February 2008, Poojan Wagh wrote:
> > Ineed my vimoutliner was missing. Also, I found that $HOME didn't
> > refer to C:\Programs Files\Vim for some reason. Instead, $VIM did.
> > Anyway, the attached .zip file (unzipped into c:\Programs Files\Vim)
> > is the results of all my edits (mainly replacing $HOME with $VIM and
> > enabling some disabled runtime commands). I used a fresh install of
> > Vim 7.0.
> >
> > On Feb 8, 2008 12:39 PM, Noel Henson <[hidden email]> wrote:
> > > On Friday 08 February 2008, Poojan Wagh wrote:
> > > > Error detected while processing C:\Program
> > > > Files\vim\vim71\ftplugin\vo_base.vim:
> > > >
> > > > line  664:
> > > > E121: Undefined variable: g:vo_modules_load
> > > > E15: Invalid expression: g:vo_modules_load . ':'
> > > > line  665:
> > > > E121: Undefined variable: s:tmp
> > > > E116: Invalid arguments for function stridx(s:tmp, ':')
> > > > E15: Invalid expression: stridx(s:tmp, ':')
> > > > line  667:
> > > > E121: Undefined variable: s:idx
> > > > E15: Invalid expression: (s:idx != -1)
> > > >
> > > > Please help.
> > > >
> > > > :version
> > > >
> > > > VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 25 2008 14:50:37)
> > > > MS-Windows 32 bit GUI version with OLE support
> > > > Included patches: 1-241
> > > > Compiled by [hidden email]
> > > > Big version with GUI.  Features included (+) or not (-):
> > > > +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
> > > > +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
> > > > +cmdline_info +comments +cryptv +cscope +cursorshape +dialog_con_gui
> > > > +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra
> > > > +extra_search +farsi +file_in_path +find_in_path +folding -footer
> > > > +gettext/dyn -hangul_input +iconv/dyn +insert_expand +jumplist
> > > > +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
> > > > +menu +mksession +modify_fname +mouse +mouseshape
> > > > +multi_byte_ime/dyn +multi_lang +mzscheme/dyn +netbeans_intg +ole
> > > > -osfiletype +path_extra +perl/dyn -postscript +printer -profile
> > > > +python/dyn +quickfix +reltime +rightleft +ruby/dyn +scrollbind
> > > > +signs +smartindent -sniff +statusline -sun_workshop +syntax
> > > > +tag_binary +tag_old_static -tag_any_white +tcl/dyn -tgetent
> > > > -termresponse +textobjects +title +toolbar +user_commands +vertsplit
> > > > +virtualedit +visual +visualextra +viminfo +vreplace +wildignore
> > > > +wildmenu +windows +writebackup -xfontset -xim -xterm_save -xpm_w32
> > > >   system vimrc file: "$VIM\vimrc"
> > > >     user vimrc file: "$HOME\_vimrc"
> > > >  2nd user vimrc file: "$VIM\_vimrc"
> > > >      user exrc file: "$HOME\_exrc"
> > >
> > > It sounds like your _vimoutlinerrc file is missing. It should be in
> > > the same directory as your _vimrc file.
> > >
> > > Noel
> > >
> > > --
> > >
> > > ------------------------------------------------------------------
> > >   Noel Henson
> > >   www.noels-lab.com     Chips, firmware and embedded systems
> > >   www.vimoutliner.org   Work fast. Think well.
> > >
> > >
> > > _______________________________________________
> > > VimOutliner mailing list
> > > [hidden email]
> > > http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
>
>
>
> --
>
> ------------------------------------------------------------------
>   Noel Henson
>   www.noels-lab.com     Chips, firmware and embedded systems
>   www.vimoutliner.org   Work fast. Think well.
>
> _______________________________________________
> VimOutliner mailing list
> [hidden email]
> http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
>



--
Poojan
_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner
Reply | Threaded
Open this post in threaded view
|

Re: Errors with Vim 7.1 on Windows

Tim Roberts
Poojan Wagh wrote:
> Yup: fully up and running. Upon looking into it further (using my home
> computer), I found that vim on Windows for some reason sets $HOME to
> be $HOMEDRIVE:$HOMEPATH.

This is because Windows does not define a HOME variable by default.  A
normal installation only gets HOMEDRIVE and HOMEPATH.

> In my case, at work, this was set to H:\ for
> some reason. So, I guess I could have (and probably should have)
> installed all the files into H:\vimfiles (for example). However,
> H:\vimfiles didn't exist initially and I didn't know to look for it
> there. (It is also a curious feature of vim for windows to rename what
> normally would be .vim to vimfiles.)
>  

And this is because, until relatively recently, vim supported Windows
3.x and MS-DOS, which had a certain amount of trouble with file names
that had nothing to the left of the dot.  That's also why we have _vimrc
instead of .vimrc.

--
Tim Roberts, [hidden email]
Providenza & Boekelheide, Inc.

_______________________________________________
VimOutliner mailing list
[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner