public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Was Vim compiled with +eval feature?
@ 2014-10-06  4:18 Gevisz
  2014-10-06  4:42 ` Jc García
  2014-10-07 18:51 ` Todd Goodman
  0 siblings, 2 replies; 6+ messages in thread
From: Gevisz @ 2014-10-06  4:18 UTC (permalink / raw
  To: gentoo-user

I have downloaded the snippet plugin from
http://www.vim.org/scripts/script.php?script_id=361
and have done all the steps described there to
install it but, unfortunately, it does not work.

My first thought was that a plugin should be somehow
loaded into Vim but Vim documentation says that

  "Vim's functionality can be extended by adding plugins.
   A plugin is nothing more than a Vim script file that
   is loaded automatically when Vim starts. You can add
   a plugin very easily by dropping it in your plugin
   directory. {not available when Vim was compiled
   without the +eval feature}"

So, it seems that no load command is needed.

I am going to post the question about it in vim mailing list
but I guess that the first question to me will be: "Was your
vim compiled with the +eval feature?"

I guess that the answer is "yes" but do not know it for sure.

To find out this I have tried
  $ equery uses vim
but it gives no exact answer to the question above
(though it seems that the answer is "yes", I guess
it from the fact that the minimal use flag is disabled).

Here is the output from this command:

 * Found these USE flags for app-editors/vim-7.4.273:
 U I
 + + X       : Link console vim against X11 libraries to
               enable title and clipboard features in xterm
 + + acl     : Add support for Access Control Lists
 - - cscope  : Enable cscope interface -- in vim for example
 - - debug   : Enable extra debug codepaths, like asserts
               and extra output. If you want to get meaningful
               backtraces see
               http://www.gentoo.org/proj/en/qa/backtraces.xml
 + + gpm     : Add support for sys-libs/gpm (Console-based mouse driver)
 - - lua     : Enable Lua scripting support
 - - luajit  : Use dev-lang/luajit instead of dev-lang/lua
 - - minimal : Install a very minimal build (disables, for example,
               plugins, fonts, most drivers, non-critical features)
 + + nls     : Add Native Language Support (using gettext - GNU locale utilities)
 - - perl    : Add optional support/bindings for the Perl language
 - - python  : Add optional support/bindings for the Python language
 + + python_single_target_python2_7 : Build for Python 2.7 only
 - - python_single_target_python3_3 : Build for Python 3.3 only
 + + python_targets_python2_7       : Build with Python 2.7
 + + python_targets_python3_3       : Build with Python 3.3
 - - racket                         : Enable support for Scheme using dev-lang/racket
 - - ruby                           : Add support/bindings for the Ruby language
 - - tcl                            : Add support the Tcl language
 - - vim-pager                      : Install vimpager and vimmanpager links

More generally, I would also ask if there is something
specific in Gentoo Vim setup that could prevent a Vim
plugin from executing?  

P.S. I have also tried to load all the plugins by
  :runtime! plugin/**/*.vim
command as described in Vim documentation but it says:
  Error detected while processing ~/.vim/plugin/snippet.vim:
    line 28:
      E15: Invalid expression: exists("loaded_snippets")
    line 231:
      E171: missing :endif


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Was Vim compiled with +eval feature?
  2014-10-06  4:18 [gentoo-user] Was Vim compiled with +eval feature? Gevisz
@ 2014-10-06  4:42 ` Jc García
  2014-10-06  4:49   ` Jc García
  2014-10-06 12:07   ` Gevisz
  2014-10-07 18:51 ` Todd Goodman
  1 sibling, 2 replies; 6+ messages in thread
From: Jc García @ 2014-10-06  4:42 UTC (permalink / raw
  To: gentoo-user

2014-10-05 22:18 GMT-06:00 Gevisz <gevisz@gmail.com>:
> I have downloaded the snippet plugin from
> http://www.vim.org/scripts/script.php?script_id=361
> and have done all the steps described there to
> install it but, unfortunately, it does not work.
>
Stop installing vim plug-ins manually.  use one of the plug-in
installers out there, pathogen[1] is really nice and easy to use,
basically you just do 'git clone' the repo of the plug-in in
~/.vim/bundle/
and have this  at the top of your .vimrc
execute pathogen#infect()

Plus you can upgrade your plugins easily 'git fetch && git pull' (I
made a small script that handles this for any plug-ins I have
installed)
I also use the snippet[2] plugin, and cloned/upgrade it from github.
[1] https://github.com/tpope/vim-pathogen
[2] https://github.com/honza/vim-snippets


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Was Vim compiled with +eval feature?
  2014-10-06  4:42 ` Jc García
@ 2014-10-06  4:49   ` Jc García
  2014-10-06 12:07   ` Gevisz
  1 sibling, 0 replies; 6+ messages in thread
From: Jc García @ 2014-10-06  4:49 UTC (permalink / raw
  To: gentoo-user

2014-10-05 22:42 GMT-06:00 Jc García <jyo.garcia@gmail.com>:
> 2014-10-05 22:18 GMT-06:00 Gevisz <gevisz@gmail.com>:
>> I have downloaded the snippet plugin from
>> http://www.vim.org/scripts/script.php?script_id=361
>> and have done all the steps described there to
>> install it but, unfortunately, it does not work.
>>
> Stop installing vim plug-ins manually.  use one of the plug-in
> installers out there, pathogen[1] is really nice and easy to use,
> basically you just do 'git clone' the repo of the plug-in in
> ~/.vim/bundle/
> and have this  at the top of your .vimrc
> execute pathogen#infect()
>
> Plus you can upgrade your plugins easily 'git fetch && git pull' (I
> made a small script that handles this for any plug-ins I have
> installed)
> I also use the snippet[2] plugin, and cloned/upgrade it from github.
> [1] https://github.com/tpope/vim-pathogen
> [2] https://github.com/honza/vim-snippets
Forgot to mention, the snippets plugin works together with the snipmate[1] one.
[1] https://github.com/garbas/vim-snipmate


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Was Vim compiled with +eval feature?
  2014-10-06  4:42 ` Jc García
  2014-10-06  4:49   ` Jc García
@ 2014-10-06 12:07   ` Gevisz
  1 sibling, 0 replies; 6+ messages in thread
From: Gevisz @ 2014-10-06 12:07 UTC (permalink / raw
  To: gentoo-user

On Sun, 5 Oct 2014 22:42:22 -0600
Jc García <jyo.garcia@gmail.com> wrote:

> 2014-10-05 22:18 GMT-06:00 Gevisz <gevisz@gmail.com>:
> > I have downloaded the snippet plugin from
> > http://www.vim.org/scripts/script.php?script_id=361
> > and have done all the steps described there to
> > install it but, unfortunately, it does not work.
> >
> Stop installing vim plug-ins manually.  use one of the plug-in
> installers out there, pathogen[1] is really nice and easy to use,
> basically you just do 'git clone' the repo of the plug-in in
> ~/.vim/bundle/
> and have this  at the top of your .vimrc
> execute pathogen#infect()
> 
> Plus you can upgrade your plugins easily 'git fetch && git pull' (I
> made a small script that handles this for any plug-ins I have
> installed)
> I also use the snippet[2] plugin, and cloned/upgrade it from github.
> [1] https://github.com/tpope/vim-pathogen
> [2] https://github.com/honza/vim-snippets

Thank you for the tips. I will look into these plugins later.

As to the automatic plugin installations, before doing this
automatically, it is nice to know how to do it by hands.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Was Vim compiled with +eval feature?
  2014-10-06  4:18 [gentoo-user] Was Vim compiled with +eval feature? Gevisz
  2014-10-06  4:42 ` Jc García
@ 2014-10-07 18:51 ` Todd Goodman
  2014-10-08  4:38   ` Gevisz
  1 sibling, 1 reply; 6+ messages in thread
From: Todd Goodman @ 2014-10-07 18:51 UTC (permalink / raw
  To: gentoo-user

* Gevisz <gevisz@gmail.com> [141006 00:19]:
[SNIP]
> I am going to post the question about it in vim mailing list
> but I guess that the first question to me will be: "Was your
> vim compiled with the +eval feature?"
> 
> I guess that the answer is "yes" but do not know it for sure.

You can see what features are compiled in by running "vim --version"

Mine does have eval compiled in.

Todd


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] Was Vim compiled with +eval feature?
  2014-10-07 18:51 ` Todd Goodman
@ 2014-10-08  4:38   ` Gevisz
  0 siblings, 0 replies; 6+ messages in thread
From: Gevisz @ 2014-10-08  4:38 UTC (permalink / raw
  To: gentoo-user

On Tue, 7 Oct 2014 14:51:06 -0400
Todd Goodman <tsg@bonedaddy.net> wrote:

> * Gevisz <gevisz@gmail.com> [141006 00:19]:
> [SNIP]
> > I am going to post the question about it in vim mailing list
> > but I guess that the first question to me will be: "Was your
> > vim compiled with the +eval feature?"
> > 
> > I guess that the answer is "yes" but do not know it for sure.
> 
> You can see what features are compiled in by running "vim --version"

Thank you for the tip. I have already been told this on Vim mailing
list and reported this here but, as I know can see, mistakingly
sent that message not to this thread.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-10-08  4:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-06  4:18 [gentoo-user] Was Vim compiled with +eval feature? Gevisz
2014-10-06  4:42 ` Jc García
2014-10-06  4:49   ` Jc García
2014-10-06 12:07   ` Gevisz
2014-10-07 18:51 ` Todd Goodman
2014-10-08  4:38   ` Gevisz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox