Vim-Integration in README #11

Closed
obcode opened this Issue Feb 19, 2011 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

obcode commented Feb 19, 2011

Hi,

you can add the "vim-Integration" in the README:

put in .vimrc

au BufEnter *.scala setl formatprg=scala\ -cp\ /path/to/scalariform_2.8.0-0.0.5.jar\ scalariform.commandline.Main

After that the gq-Command uses scalariform.

Regards
Oliver

Collaborator

mdr commented Feb 20, 2011

Thanks Oliver, I've added that to the README.

One issue is that if the source is not correctly parseable, Scalariform emits an error on syserr. Unfortunately, Vim still inserts that into the buffer -- is there a way around that?

Contributor

obcode commented Feb 20, 2011

I have opened a pull request, which adds --forceOutput / -f. So I would like to use it in vim this way:
au BufEnter *.scala setl formatprg=scala\ -cp\ /path/to/scalariform_2.8.0-0.0.8.jar\ scalariform.commandline.Main -f

Collaborator

mdr commented Feb 21, 2011

Fanastic, cheers. I've just merged that in.

Contributor

obcode commented Feb 21, 2011

Great. Thanks!

@bambuchaAdm bambuchaAdm pushed a commit to bambuchaAdm/scalariform that referenced this issue Mar 2, 2014

@daniel-trinh daniel-trinh Merge pull request #11 from daniel-trinh/issue7_issue8_issue9
Unify multi line method and parameter formatting
d848e9f

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment