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 snipmate-compatible snippets to expand common syntax keywords #10

Merged
merged 1 commit into from Jul 26, 2022
Merged

Add snipmate-compatible snippets to expand common syntax keywords #10

merged 1 commit into from Jul 26, 2022

Conversation

sionleroux
Copy link
Contributor

I made this list of snippets for the most commonly used commands to somewhat replicate the convenient completion you get when using the embedded OpenSCAD editor for Vim.

For example, type cube and press the snippet expansion mapping and it becomes cube([x,y,z]); with the cursor positioned on x and ready to jump to the next letters.

I can make a separate plugin if this is the wrong place but I've seen other syntax plugins including snippets and I think it would be convenient here, together with the current highlighting, commenting, folding rules etc.

I made this list of snippets for the most commonly used commands to
somewhat replicate the convenient completion you get when using the
embedded OpenSCAD editor for Vim.
@sirtaj sirtaj merged commit 11ed125 into sirtaj:master Jul 26, 2022
@sirtaj
Copy link
Owner

sirtaj commented Jul 26, 2022

I think including the snippets is ok, thanks for this.

@sionleroux sionleroux deleted the snippets branch July 26, 2022 22:36
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.

None yet

2 participants