I'm using vim to edit files that use a programming language where the end of line is not marked with ;. This causes problems when I try to fix indentation in vim. If I put a ; at the end then vim is able to correctly fix the indentation, but since this programming language doesn't have a ; at the end of a statement the indentation isn't correct after vim tries to fix it. How can vim be modified so that it works correctly with this programming language?

asked 19 Aug '10, 21:47

Phenom's gravatar image

accept rate: 0%

edited 23 Aug '10, 13:36

guerda's gravatar image


What programming language? There's probably already a correct syntax file out there. If not, have a look at the Python vim file. Python doesn't use semicolons either. You may be able to cobble together a proper syntax file using that.


answered 23 Aug '10, 06:31

Sander%20Marechal's gravatar image

Sander Marechal
accept rate: 29%

Here is a link to the python.vim script on the vim website.


answered 23 Aug '10, 20:27

indienick's gravatar image

accept rate: 17%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 19 Aug '10, 21:47

Seen: 7,424 times

Last updated: 23 Aug '10, 20:27

powered by OSQA