Wednesday, June 4, 2014

Re: Cannot set runtimepath correctly

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512



On June 4, 2014 2:52:14 PM GMT+03:00, DwigtArmyOfChampions <dwightarmyofchampions@hotmail.com> wrote:
>I am trying to install The Ultimate Vim Configuration on my Windows PC
>(from https://github.com/amix/vimrc ), and I can't get the runtimepath
>to work. I have a folder inside my home folder called "vim_runtime" and
>inside that folder are all the folders containing all the plugins and
>settings and such. The subfolders in the folder are: "autoload",
>"sources_forked", "sources_non_forked", "temp_dirs", and "vimrcs". My
>_vimrc file is as follows:
>
>BEGIN DISPLAY _VIMRC:
>
>cd $HOME
>set runtimepath+=~/vim_runtime
>
>source ~/vim_runtime/vimrcs/basic.vim
>source ~/vim_runtime/vimrcs/filetypes.vim
>source ~/vim_runtime/vimrcs/plugins_config.vim
>source ~/vim_runtime/vimrcs/extended.vim
>
>try
>source ~/vim_runtime/my_configs.vim
>catch
>endtry
>
>END DISPLAY _VIMRC
>
>As I understand it, when you call "set runtimepath" on a folder all of
>its subfolders should be added to the runtimepath as well (correct me
>if I'm wrong on this). However, when I load gVim and view the

No. Adding some runtimepath only adds some runtimepath and not anything else you have not explicitly specified.

>runtimepath, only "~/vim_runtime" is getting added and none of the
>subfolders. However, the .vim files in the vimrcs/ folder are getting
>executed (sourced) correctly, because when I start gVim I get an error
>saying that it could not find the peaksea color scheme (line 37 of
>extended.vim). Which makes sense, because the folder that contains
>peaksea.vim (sources_forked/peaksea) is not in runtimepath. How do I
>fix this, other than manually adding every single subfolder and
>subfolder of the subfolder to runtimepath?

If you need to add more then one path and these paths are contained as subfolders in a set of folders then you should use pathogen or construct something on top of glob() (use let &runtimepath in this case, this way you only need to escape() backslash and comma).

Check out NeoBundle and vim-addon-manager for more advanced plugin management options.

>
>--
>--
>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/d/optout.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iQI1BAEBCgAfBQJTjvwlGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvtG3D/wI8uMXOsqsj6+/IjCu0Dfn9Q6v/brSQyaCmboRXfaa17u/X83j6DAc
Co4aLrPQiEutq5FoGrhPxqrB8Hh99bOvxUh7iIS5htVQFCauSSjx4o0qyhT+LRtc
/Jl1DP+cOSMREiHiWZKQkCuNxrCpit9UShWXq6Sa72tfy2oMXmg5XiphPGuEfSgp
W021GwKhRSt1OoVVAhAFUkt8FSDzdtYVSE4+n7fiIu2UXh2h8UJSxHze8AESFAK8
YnlyYFoeFWq9ykSckyQtwrOPBOPLYsxi/s4TxS54ClZ6XRWp95cnCZUkParxiMiO
Uo8ujEcoIHMYZ3d3NrZyxLlijGQhREkN7E+aUZb8xQ6gBqfBG1/3Olc3pIvZJOnc
4bJt6EXvaAqtoc3KnZn6ZZ++2OHsh4lBZJ9F6ix3H95x2P/7iXptvEKgJG83D0w1
cNf86QR5d5R2woCgNLcpMPIUQEENTcWvn8aqBNt5rk/ghpkZBGBL/Xc8TF5wSM/p
C80PZFrOHlmU0FoaUhWXWgnKP5slo/AsjkMvHQ0jtWPtDMtwdQIyBThIB8xUpFJg
QTj61hgLX9aEPHgbUOEzJFDJLGAJ1NzWKI+Ei6cQQSp4fqmSqJyUqV2pjpi7FpWa
psWgEqxkJzYjMFWZqBL01lwXcCifzufOXpZl/dtpV/vaDn5UenlGtw==
=AnLt
-----END PGP SIGNATURE-----

--
--
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/d/optout.

No comments:

Post a Comment