You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,11 @@ To prevent arbitrary code execution attacks, AutoSource will prompt you to appro
10
10
11
11
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.
12
12
13
+
## Why AutoSource
14
+
I work on many projects, some personal and others for work. Each project has its' own standards and requirements, which means I can't configure VIM to handle a given language in a single way. I'll also commonly hop into different repos 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).
15
+
16
+
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.
@@ -43,7 +48,7 @@ AutoSource will also look for `.vimrc.lua` files and source them with `:luafile`
43
48
### `g:autosource_hashdir`
44
49
**Default:**`$HOME/.autosource_hashes`
45
50
46
-
This directory is where AutoSource stores the hashes of your files. These hases are used to check for changes so the plugin can prompt you for re-approval.
51
+
This directory is where AutoSource stores the hashes of your files. These hashes are used to check for changes so the plugin can prompt you for re-approval.
47
52
48
53
### `g:autosource_disable_autocmd`
49
54
**Default:**`0`
@@ -103,5 +108,10 @@ Approves the current file.
103
108
## Planned Work
104
109
Features are being tracked in the [issues page](https://github.com/jenterkin/vim-autosource/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement). If you would like to request a feature feel free to create an issue with the `enhancement` tag.
0 commit comments