On Fri, Mar 8, 2013 at 11:13 AM, Ben Fritz <[email protected]> wrote:
> On Thursday, March 7, 2013 9:05:58 PM UTC-6, Maciej Kalisiak wrote: > > while on "not broken" versions it indents as expected: > > > > - aoeu aoeu aoeu aoeu aeou aeou aoeu aoeu aoeu > > aoeu aoeu aoeu aoeu aoeu oaeu aoeu aoeu > > > > As I said, this behaviour is same if I use '*' or '#', and possibly > other characters, but letters and digits seem unaffected. > > I reproduced, using fo=tn, but I actually think this is "correct" behavior. > > The indentation works as intended with fo=cn instead of fo=tn. > > The default setting for the 'comments' option, which determines whether > the current line is a comment or not for automatic formatting, Ah, very interesting, I didn't realize that was the interpretation of this option (manual frames it differently). This puts things in a different light. > includes - as well as * and # as starting a line comment. So, with default > settings, lines starting with #, *, or - all are formatted as comment > lines. Since you do not have comment lines being formatted in your > formatoptions setting, automatic formatting does not apply to these lines. > Yeah, in that light this makes sense. > > Either add 'c' to your formatoptions setting, or remove '-' and other > desired characters from your 'comments' setting. > Hmm, neither leads to desired behaviour with Vimwiki... I suspect the latter might need to be updated in light of this change. Essentially, what I am really after, is to be able to do point form PARAGRAPHS in a vimwiki bullet list, something that was possible before the mentioned change; that is, I want to achieve the following layout and indentation (which I assume is how vimwiki is intended to work), by entering only words, spaces, and hitting return to at end of each bullet paragraph: * short item<CR> * a much much much much much much much longer item that requires a line wrap<CR> * another very very very very long bullet point that also requires a line wrap<CR> With recent Vim those paragraphs will not be indented properly; as mentioned earlier, I'll get: * short item<CR> * a much much much much much much much longer item that requires a line wrap<CR> * another very very very very long bullet point that also requires a line wrap<CR> If I throw on fo+=c, I instead get the asterisk on every line: * short item<CR> * a much much much much much much much longer * item that requires a line wrap<CR> * another very very very very long bullet point that also * requires a line wrap<CR> Removing the character from 'comments' on the other hand leads to the bullet no longer being automatically inserted for next item when you hit <CR>. I suppose though that this is then an issue with how Vimwiki implements this bullet entry functionality, and the script needs to be adapted after this change. > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Maciej Kalisiak [email protected] -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
