On 16/10/09 13:10, Pablo Giménez wrote:
>
>
> 2009/10/15 sc <[email protected] <mailto:[email protected]>>
>
>
>     On Thursday 15 October 2009, Pablo Giménez wrote:
>
>      > Is there any way to get the name of the current colorscheme
>      > used in a vim script???
>
>     if the scheme is properly written it has a line assigning its
>     name to the global variable 'colors_name', for example:
>
>     let g:colors_name = "biogoo"
>
> Thanks that works perfectly.
> Now my problem is that in the colors scheme menu only appears the colors
> in the /usr/share/vim71/colors.
> But I have add to the runtime another path using in my ~/.vimrc:
> " Set runtime paths
> set runtimepath="/opt/myVim",$VIMRUNTIME
>
> in /opt/myVim I have a folder called colors with my colorscheme, it
> works perfectly with the :colorscheme command, so vim can find the color
> script, but it doesn't appear in the color scheme menu.
> Any to include it in the vim menu?????
> thx
>
>
>     so you can query and use that
>
>     hth,
>
>     sc
>
>
>
>
>
> --
> Un saludo
> Best Regards
> Pablo Giménez


Set that option before the menus are sourced (the ":filetype" and 
":syntax" commands may source them implicitly in gvim), and with no 
quotes in the option, e.g.

        set rtp^=/opt/myVim rtp+=/opt/myVim/after
        filetype plugin indent on
        syntax on
        " etc.

Note the use of ":set" with ^= (insert before) and += (insert after) so 
the standard locations (such as ~/.vim and ~/.vim/after, which, unlike 
what you wrote above, are login-name-dependent) will still be used if 
populated.

And BTW, Vim 7.1 is old hat by now. The current stable version is 
7.2.293 as of this writing.


Best regards,
Tony.
-- 
No part of this message may reproduce, store itself in a retrieval
system, or transmit disease, in any form, without the permissiveness of
the author.
                -- Chris Shaw

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to