Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$VOLTPATH/rc/default/[g]vimrc is not being generated #272

Closed
hupfdule opened this issue Mar 26, 2019 · 4 comments
Closed

$VOLTPATH/rc/default/[g]vimrc is not being generated #272

hupfdule opened this issue Mar 26, 2019 · 4 comments

Comments

@hupfdule
Copy link
Contributor

When installing a plugin with volt, I get the following output:

$ volt get tpope/vim-fugitive
[INFO] Full building /home/hupfdule/.vim/pack/volt/opt directory ...
[INFO] Installing vimrc and gvimrc ...
+ github.com/tpope/vim-fugitive > installed

It tells me something about a vimrc and gvimrc being installed, but that is actually not the case.
My original ~/.vimrc is still unmodifed and the directory $VOLTPATH/rc doesn't even exist.

I actually don't even know what should happen. The README isn't clear about that. Should volt at any time touch my ~/.vimrc? I expect not. Should it modify an existing $VOLTPATH/rc/defauilt/vimrc? I expect so. But am I responsible for symlinking my real ~/.vimrc to $VOLTPATH/rc/default/vimrc? I don't know. And if volt is creating/modifying that vimrc, what does in enter there?

It should be stated more clearly in the README what the user should do here. I expected that $VOLTPATH/rc/default/vimrc would be created by volt and the installed packages magically get activated.

I am using the release version 0.3.5 of volt.

@mrymtsk
Copy link
Contributor

mrymtsk commented Mar 26, 2019

As stated here, if $VOLTPATH/rc/<profile>/{vimrc.vim,gvimrc.vim} exist, they will be copied as $HOME/.vim/{vimrc,gvimrc} upon volt build. $HOME/.vim/{vimrc,gvimrc} are used as runcom files if $HOME/{.vimrc,.gvimrc} are not found.

Therefore, if you wish to manage your .vimrc and/or .gvimrc inside the $VOLTPATH, you can move them to $VOLTPATH/rc/<profile>/{vimrc.vim,gvimrc.vim}. If not, you don't need to do anything; volt build never touches $HOME/{.vimrc,.gvimrc} and $VOLTPATH/rc/<profile>/{vimrc.vim,gvimrc.vim} are not necessary in that case.

Sent with GitHawk

@hupfdule
Copy link
Contributor Author

hupfdule commented Apr 9, 2019

Well, it is correct what you say and it is working. But still I think the README should be refined to describe this topic a bit better. It is not easy to identify the necessary bits out of the README to create a new volt config from scratch.

@mrymtsk
Copy link
Contributor

mrymtsk commented Apr 9, 2019

I agree that README can be more precise and friendly. I will try and make a PR when I have time :)

@tyru tyru mentioned this issue May 4, 2019
@tyru tyru mentioned this issue May 5, 2019
@tyru
Copy link
Member

tyru commented May 26, 2019

fixed in #292

@tyru tyru closed this as completed in a2fcf47 May 26, 2019
hupfdule pushed a commit to hupfdule/volt that referenced this issue Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants