preservim / vim-pencil

Rethinking Vim as a tool for writing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linebreak in lists

ukos-git opened this issue · comments

the pencil plugin does not seem to respect next lines in rst syntax that are beginning with an * or -
The following

headline
========

* here it is
* i have a bullet point that breaks a bullet point that breaks a bullet point that breaks a bullet point that breaks a bullet <-- Hit enter
  again and again and again and again and again and again and again and again and again and again and again and again and

should reformat to

headline
========

* here it is
* i have a bullet point that breaks a bullet point that breaks a bullet point
  that breaks a bullet point that breaks a bullet again and again and again and
  again and again and again and again and again and again and again and
  again and again and

but instead, it reformats to

headline
========

* here it is
* i have a bullet point that breaks a bullet point that breaks a bullet point
that breaks a bullet point that breaks a bullet again and again and again and
again and again and again and again and again and again and again and again
and again and

is there some clever way to fix the indentation here?

I am not sure if it is related with the other lists formatting issues I have on riv vim so I'm mentioning that no syntax highlighting is visible here.

sorry. it was not a pencil problem but related to wrong sw indentation