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.

Cannot set runtimepath correctly

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

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

Monday, June 2, 2014

Re: Keep consistent vim environments across different platforms

On 2014-06-02, DwigtArmyOfChampions wrote:
> I have Vim installed on my work PC on a remote Linux server, and I
> have gVim installed on Windows on my work PC, and I have gVim
> installed on my home PC, and I have macvim on my laptop. I want
> all of these different instances of Vim to use the same
> environment and plugins and vimrc's. I want to set up a standard
> Vim environment so I can easily download everything to all my
> computers, and I also want to easily copy changes back up so I can
> make changes easily. What is an easy way to do this?

The easiest way is to use Dropbox. Then just create the appropriate
type of link for your OS from your Dropbox/vimfiles directory to
~/.vim or ~/vimfiles. Any file changed on any of your installations
automatically appears in every other installation with no
intervention on your part. This can be a disadvantage as well as an
advantage, but it works well for me.

I also use Unison and a cron job to run it periodically on some
machines on which I can't run Dropbox.

This does not provide version control as using a VCS everywhere
would, but I like not having to think about whether I need to check
for updates. Also, because changes are distributed almost
immediately, I hardly ever have to merge changes made to different
installations.

Regards,
Gary

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

Re: Keep consistent vim environments across different platforms

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



On June 3, 2014 5:46:40 AM GMT+03:00, DwigtArmyOfChampions <dwightarmyofchampions@hotmail.com> wrote:
>I have Vim installed on my work PC on a remote Linux server, and I have
>gVim installed on Windows on my work PC, and I have gVim installed on
>my home PC, and I have macvim on my laptop. I want all of these
>different instances of Vim to use the same environment and plugins and
>vimrc's. I want to set up a standard Vim environment so I can easily
>download everything to all my computers, and I also want to easily copy
>changes back up so I can make changes easily. What is an easy way to do
>this?

The usual ways to do this are the following:

- - pathogen + git + git submodules
- - Vundle/NeoBundle + ?
- - vim-addon-manager

. In the first two variants you must have git installed (not so sure about NeoBundle though). pathogen + git + git submodules should allow installation in one command.

VAM variant may be scripted so that all you need is to copy vimrc, install git and clone .vim. Everything else including checking out VAM will be done automatically using SetupVAM function for documentation (BTW do NOT keep 'auto_install': 0, set it to 1. I have no idea why Marc Weber had put it there).

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

iQI1BAEBCgAfBQJTjSvOGBxaeVggPHp5eC52aW1AZ21haWwuY29tPgAKCRCf3UKj
HhHSvu1mD/9Msb0hxs6vSwKHvbOwAmy71H+vnRCWexNF8qNoHSsvUHv6Fht3PLAH
f8eHVkPnh2xHkMtaevsfYdKwpcYjFO4l2PqM/AS96po04SKndeyJcoceShn6Sw4w
P9f+uM/e2KHx4yZoqC+Yc9KoCEafAN5d0RpwFsVOYOIBmkilz+sur4W/l6eZs3R7
g/xkRWxEhF+nD73zUZagEgYN5qt4ad97MIXOSdsQjmFdb/Age5b0yjpa8jE54a10
VMVVSLEEezdz9OaDFcXBemTeNy+/gKgvL4DJP6wvnUp9mn/RMCJDkm/Zvku4f98L
QhXdoIW8cdWQMsoUdnUI7CNX8UF+bzn69hDSelf8OV+Ts31sDcCtdm12dI7ToviG
tMMJa/WKgqokijuC+bEFX1BR0baoSe5RQ6rGJg/rSChv2yY0VF5jhHoU1K0xFqp4
4YDXxxfG20x+LmNpApSdXrRhY1Muu8bIqFEIEUZGzUG89Xc1cLyXmvrhvKAOo8yv
oFRkz3sJr3G3rJZ6/6txADzEE2aJu73Ih2qXXiH5bVlU7/PWw4lBl/1fCDzyLWKp
TPLUdIfpd7bqvasKfjZOYTkGGywagEfbG64g7tlfQ+vnl/YbkhIhwwVVi/CYHHII
Co9Vnydnan05TZSFG1askZxGVCb0y6DjCGzAIUQI3pt4JUSjwghwCg==
=QW4H
-----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.

Re: Keep consistent vim environments across different platforms

Keep your .vimrc on github. Have all your plugins installed/managed via Vundle. Then all you need to have your personalized vim setup on any machine is to git clone your .vimrc and fire Vundle via BundleInstall to setup all your plugins.


On Mon, Jun 2, 2014 at 9:46 PM, DwigtArmyOfChampions <dwightarmyofchampions@hotmail.com> wrote:
I have Vim installed on my work PC on a remote Linux server, and I have gVim installed on Windows on my work PC, and I have gVim installed on my home PC, and I have macvim on my laptop. I want all of these different instances of Vim to use the same environment and plugins and vimrc's. I want to set up a standard Vim environment so I can easily download everything to all my computers, and I also want to easily copy changes back up so I can make changes easily. What is an easy way to do this?

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

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

Keep consistent vim environments across different platforms

I have Vim installed on my work PC on a remote Linux server, and I have gVim installed on Windows on my work PC, and I have gVim installed on my home PC, and I have macvim on my laptop. I want all of these different instances of Vim to use the same environment and plugins and vimrc's. I want to set up a standard Vim environment so I can easily download everything to all my computers, and I also want to easily copy changes back up so I can make changes easily. What is an easy way to do this?

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

yaml.vim indentexpr, unindents on ":"

Hi

I'm writing a lot of ansible yaml files and I'm having an issue with the included indent/yaml.vim file in Vim7.4 (ubuntu).

When I type a colon, the current line is unindented immediately.

See https://asciinema.org/a/9936 for example

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