Download vimrc file






















Add a comment. Active Oldest Votes. As romainl and Ian Emnace said in the comments you shouldn't do that with Vim. Here's why: The unix tool philosophy is to have small programs to accomplish a particular task instead of trying to develop large monolithic programs to do a large number of tasks.

Vim is a text editor, even if it includes netrw which has some network capabilities, it is not meant to automate file downloads. Furthermore downloading a thesaurus is not a task that you'll often do: You don't need to download it each time you source your vimrc. Thus what I would recommend is to: Host your dotfiles on a git repository this question mentions it and you can also google dotfiles github you'll get a lot of examples but you can use bitbucket or even a self hosted gitlab instead of github In this repository also host a bash script or python or maybe go or whatever scripting language you're familiar with that you'll execute when you install your dotfiles and which will download the spell files you need in the correct destination.

If you already manage your dotfiles on github maybe you already have such a script which symlink your files or do this kind of things, it would be easy to add a wget call to this script. Improve this answer. Community Bot 1. Completely agree. Could you help clarify why vim downloads spell fikes internally and why Vundle perform downloads if these are outside the scope of a text editor? I understand the reasoning. I understand the unix philosiphy.

I was not trying to go against any right or wrong philosophy. I just wanted to know if and how it could be done. Learn about netrw internals better. Sukima I think that plugin manager are more than just downloaders since their main role is to add the plugin files to the runtimepath and make the plugins and their docs available to the user. About the spell files I have to say that it is a counter example to my answer.

Personally I don't use the download feature: the spell files I needs are in my dotfiles repo and when I install my dotfiles on a new machine the spell files are installed too. Now my answer was simply reflecting my opinion and I certainly don't claim that it is an universal truth :- — statox. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Instantly share code, notes, and snippets. Last active Jul 22, Code Revisions 3 Stars Forks Embed What would you like to do?

Embed Embed this gist in your website. Share Copy sharable link for this gist. Learn more about clone URLs. Download ZIP. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters. This comment has been minimized.

Sign in to view. Improve this answer. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile.

Reducing the weight of our footer. Recommend Deletion option in Late Answers review queue does nothing - please Please stop posting half answers and dumb advice as comments. Related 4. Hot Network Questions.



0コメント

  • 1000 / 1000