David le Comte wrote:
This is my 2nd attempt, but with smaller sample vhdl file,
The mail handler rejected my last email due to
its being too large.

Problem Description:
--------------------

When editing VHDL files, autoindent mode
does not behave as expected with comment lines.
I suggest that there is a problem with
GetVHDLInsert().

I can not find function with name GetVHDLInsert in my vim source. Maybe you mean GetVHDLindent?.

The problem may have something
to do with how tabstop and softtabstop are set.

Detailed Description:
---------------------

With tabstop=4, when either opening a new comment line,
or continuing in text insert mode from one comment line
to the next, the new comment line will autoindent as one
expects, ie it will start in-line with the previous comment
line, BUT, after typing some text, the line will suddenly
re-indent itself, usually a couple of spaces from the
beginning of the line.

I can not reproduce this behavior. But I can see that indentation is incorrect when &tabstop is not 1. Maybe we have different versions of an indent file? I have version 1.36 by Gerald Lai <laigera+vim?gmail.com>. I can see that there is an updated version - 1.40 on vim.org, but it does not differ in the indentation logic from 1.36.


After changing from tabstop=4 to tabstop=8, and setting
softabstop=4, a new comment line will autoindent itself a
long way in to the right from the previous line.
This is purely a guess, but it seems to be treating spaces
as though they were tabs?

I have attached bugreport.txt as created by bugreport.vim,
and also one of my VHDL files.

Except for the vim version this bugreport is useless as for me. You shall use bugreport.vim just after you've reproduced the bug. Otherwise it contains rather general information, while your bug is very specific. In any case, automatically generated bug report does not contain script versions, so you shall include them in order to ensure we are on the same page.

And the file you have attached it is so huge. Can the bug be reproduced on a small file? One or two lines length.

Anyway, I have fixed a bug in my version of a VHDL indent script. Maybe this is the same bug you are experiencing. Please, try it. You should put the attached file into a $HOMEPATH\vimfiles\indent folder.

Attachment: vhdl.vim
Description: application/octetstream

Reply via email to