Thursday, October 31, 2013

Re: Vim variables not being created.

On Thursday, October 31, 2013 1:13:36 PM UTC+5:30, Christian Brabandt wrote:
> On Thu, October 31, 2013 07:07, sai baba wrote:
>
> > On Wednesday, October 30, 2013 9:14:36 PM UTC+5:30, MarcWeber wrote:
>
> >> When does viml code get run (which defines vars)?
>
> >>
>
> >>
>
> >>
>
> >> If you have the default setup, thus such (ftplugin etc enabled)
>
> >>
>
> >> http://vim-wiki.mawercer.de/wiki/topic/vimrc.html
>
> >>
>
> >>
>
> >>
>
> >> Then ftplugin/*.vim files get sourced when such a filetype is opened.
>
> >>
>
> >> plugin/**/.vim files get sourced on startup
>
> >>
>
> >> autoload/** get sourced automatically as needed (function autolad
>
> >> feature)
>
> >>
>
> >>
>
> >>
>
> >> There are some more less cases such as ftdetect,syntax,... which I don't
>
> >>
>
> >> consider important.
>
> >>
>
> >> Thus make sure you're using such minimal .vimrc, if you still have
>
> >>
>
> >> problems with the plugin post again, then it might be a bug in the
>
> >>
>
> >> plugin or a filetype it did'nt expect.
>
> >>
>
> >>
>
> >>
>
> >> I haven't looked at the plugin yet - so everything I wrote about is
>
> >>
>
> >> important to know, but might not solve your issue.
>
> >>
>
> >>
>
> >>
>
> >> Marc Weber
>
> >
>
> > Hi..
>
> >
>
> > I have downloaded the pulgin from the below link..
>
> >
>
> > http://www.vim.org/scripts/script.php?script_id=2372
>
> >
>
> > File :: automatic.vim is the one im using.
>
> >
>
> > Im placing this file in my home directory(linux)
>
> > ~/.vim/ftdetect/automatic.vim
>
>
>
> It's a filetype plugin, so you need to place it in ~/.vim/ftplugin/verilog/
>
> (create directories, that don't exist), assuming that the filetype
>
> for verilog files is called verilog.
>
>
>
> Best,
>
> Christian

Placing the file in ~/.vim/ftplugin/verilog/ did NOT WORK, hence i tried placing the file in ~/.vim/ftdetect/ and i was able to load the script.

variables inside a function are being created but not from script.

Thanks
sai

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: