Hi Marshall,

Today I stumbled again upon some behaviour related to comment blocks.
I am sending my observations attached.

I realised that it is probably important that I am usually working
*with* the ``autoindent`` option *set*.  There might be conclusions of
mine which hold only when auto-indentation is in effect.  This
complicates things a bit.

So far,
Friedrich

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAN06%3DCySwpL4kOn0b89%3DKqPrLEBf_5SoRJ%2BssO8UJtAz7BrAGw%40mail.gmail.com.
Some observations regarding comment block indentation
#####################################################


Variables:

1.  The comment block is placed right at the beginning of the file -OR-
    there is is an empty line before;
2.  The ``autoindent`` option is on -OR- off.

This is with ``vim-8.2.2845``.


Behaviour *with* the ``autoindent`` option
==========================================

The comment block starts the file
---------------------------------

*   The next line is indented by 3 spaces.
*   Pressing Enter repeatedly moves the cursor just downwards in the same
    column.
*   Changing the level of indentation right in the block's first line leads
    to removal of any indentation when pressing Enter.  This also holds
    when changing the indentation back to 3 spaces prior to pressing Enter.
*   When changing the level of indentation in any later line, this changed
    indentation is preserved.


With a blank line above the comment block
-----------------------------------------

*   The next line is indented by 3 spaces.
*   Pressing Enter repeatedly leads to an alternation of no indentation and
    indentation by 3 spaces in the following lines.
*   Providing any input on the first line in the comment block indents the
    following line by 3 spaces, and afterwards the alternating behaviour
    appears.  This also holds when reducing the level of indentation to 0
    in the first line.
*   After having committed a line without further input (by just pressing
    Enter), any input on subsequent lines will break the chain of
    alternating indentation, restoring to *no* indentation.


*Without* ``autoindent`` in action
==================================

The comment block starts the file
---------------------------------

*   The next line is indented by 3 spaces, and pressing Enter starts the
    next line at its beginning.  This also holds when changing the level of
    indentation in the block's first line.


With a blank line above the comment block
-----------------------------------------

*   The next line is indented by 3 spaces.
*   This indentation is preserved when pressing Enter repeateadly.
*   Providing input on the first line, Enter restores the indentation to 3
    spaces.  When doing so in right the next line, this behaviour shows up
    again.
*   After "committing" a line with 3 spaces auto-indentation (by just
    pressing Enter) any input on a subsequent line "breaks the chain": The
    next line will feature *no* indentation.

Raspunde prin e-mail lui