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

vim - identation support #32

Open
xekoukou opened this issue Jun 28, 2015 · 5 comments
Open

vim - identation support #32

xekoukou opened this issue Jun 28, 2015 · 5 comments

Comments

@xekoukou
Copy link
Contributor

@mgor
I was wondering if vim could help us indent the generated code.
Having gg=G indent the file would be great.

@sustrik
Copy link
Owner

sustrik commented Jun 29, 2015

Interesting. I've tried to design ribosome so that it produces well indented code. I would love to hear why it doesn't work for you.

@mgor
Copy link
Contributor

mgor commented Jun 29, 2015

My thought as well. I never had any problems with the indentation of the generated code.

Could you please provide some examples?

@xekoukou
Copy link
Contributor Author

My bad.I said it wrong. I want to be able to indent the original file, the .dna file,but the parts that go to the output.

.if (a<b) {
.something();
.}

to

.if (a<b) {
.    something();
.}

@sustrik
Copy link
Owner

sustrik commented Jun 29, 2015

That sounds hard given that there are two overlapping indentations. mgor?

@mgor
Copy link
Contributor

mgor commented Jul 1, 2015

Hm, I have no experience with manipulating indentation behaviour in vim. It is probably possible, but I would have to look into it to be sure.

Don't know when I'll have time for that though.

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

No branches or pull requests

3 participants