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

Add :Driver command to re-source user specific rc #96

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pcapel
Copy link

@pcapel pcapel commented Nov 20, 2020

What

A convenience function that allows you to quickly source a configuration file scoped to your own handle (e.g. .vimrc.pcapel).

Why

Sometimes working using another developer's configuration options can be frustrating, particularly when they affect the native defaults. This is a pain point for both developers, and this could act as a convenient compromise.

Often we have idiosyncrasies in how we work. We encode these into our
muscles and having to deal with pairing situations where you are out of
sync with your pair is painful sometimes. By adding a convenience
function around sourcing your own set of configurations, we might
alleviate some of this frustration.

:command! -nargs=1 Driver :call Driver(<q-args>)

" this may no longer be required.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .local files are widely used so I wouldn't get rid of it.

Copy link
Member

@mattpolito mattpolito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So how would you reset? Just re-source vimrc again?

@pcapel
Copy link
Author

pcapel commented Nov 21, 2020

So how would you reset? Just re-source vimrc again?

Probably something like adding a default argument makes sense. The default could reasonably be the .local file. The idea was to allow people who have more particular preferences to pair easily. A command run when you take over driving seems fairly unobtrusive, but having one to reset to the standards would also be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants