sustrik / ribosome

Simple code generator
248 stars 21 forks source link

Replace existing command and functions #29

Closed mgor closed 9 years ago

mgor commented 9 years ago

When opening a second dna-file in a tab, vim will complain that the *View functions and command already exist.

Changing to function! and command! will replace any existing versions of the same functions, hence no errors.

sustrik commented 9 years ago

Merged into the mainline. Thanks!

sustrik commented 9 years ago

I've also added you to the AUTHORS file.

mgor commented 9 years ago

Thanks!

I'm working on some other improvements as well, for now in the vim syntax file. I'm converting an old and complex autogen project to ribosome.

sustrik commented 9 years ago

Well, if you have any expertise with vimL, one thing that would help a lot would be to decide on syntax colouring of the control language based on the file extension (.rb.dna = ruby, .js.dna = javascript, .py.dna = python).