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

Phenom
1158
accept rate: 0%

edited 23 Aug '10, 13:36

guerda's gravatar image

guerda
5533515




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.

link

answered 23 Aug '10, 06:31

Sander%20Marechal's gravatar image

Sander Marechal
398116
accept rate: 29%

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

link

answered 23 Aug '10, 20:27

indienick's gravatar image

indienick
14317
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

By RSS:

Answers

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

Tags:

×3
×1

Asked: 19 Aug '10, 21:47

Seen: 7,424 times

Last updated: 23 Aug '10, 20:27

powered by OSQA