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

Use get(g:, ...) to read config #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

h3xx
Copy link

@h3xx h3xx commented Nov 1, 2023

Don't pollute global variable space with this plugin's config if we don't have to.

get( {list}, {idx}, {def} ) has been part of Vim since version 7.0033 (2005-01-07).

This change also merges #27, however if you like I can modify it so that it doesn't.

This is what the system ftplugin scripts that ship with Vim test for
before installing their own keymaps.
Don't pollute global variable space with this plugin's config if we
don't have to.

get( {list}, {idx}, {def} ) has been part of Vim since version 7.0033
(2005-01-07).
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.

1 participant