{"repo":"jenterkin/vim-autosource","free":true,"listed":false,"github":"https://github.com/jenterkin/vim-autosource","clone":"git clone https://github.com/jenterkin/vim-autosource.git","description":"Manage Vim configuration for projects.","language":"Vim Script","stars":30,"topics":["vim","vim-plugin","vim-plugins","productivity"],"license":"MIT","category":"productivity","readme_excerpt":"AutoSource AutoSource is a Vim plugin that enables per project configuration by finding each Vim configuration file ( .vimrc or .vimrc.lua by default) from your $HOME directory to the opened file. Security To prevent arbitrary code execution attacks, AutoSource will prompt you to approve new .vimrc files and to re-approve those which have changed. By default AutoSource will automatically approve config changes made through Vim. See g:autosource approve on save for more info. In this gif I answered \"no\" to the prompt so that it was not sourced, then opened the .vimrc file that was cloned with the repo to see the very malicious code inside. Why AutoSource I work on many projects and each project has its' own standards and requirements. This means I can't configure Vim to handle a given language in a single way. I'll also commonly open a file in a different repo than I'm currently in to tweak something (e.g. an API response), then hop back to what I was originally doing (e.g. writing some client code that consumes said API endpoint). I wrote AutoSource because the available options ( exrc and other plugins) didn't have either the functionality or security features that I wanted. AutoSource is configurable, unobtrusive, and secure. Installation Plug Home Page packer.nvim Home Page or if you'd like to set options after it loads: Lua files AutoSource will also look for .vimrc.lua files and source them with :luafile . Variables g:autosource hashdir Default: $HOME/.autosource hashes ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jenterkin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jenterkin/vim-autosource/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}