with autoindent mode on, when writing a short bullet point on restructuredtext file:
- item one
~
Then I press Enter, and I get:
- item one
~
but I whould like to quickly by here:
- item one
-
~
so ready to fill my - item two
right now I have to do ESC[enter]i[space][space]
before
to be ready to write my item two.
After adding the @Ralf vars:
:setlocal comments+=b:-
:setlocal formatoptions+=ro
Here the check of vars values:
:set formatoptions?
formatoptions=tcqlro
:set comments?
comments=fb:..,b:-
:print
- toto
In insert mode, enter add the -
but indented
- lkdsj
~ <= press Enter
- qsdfqsdf
~ <= press Enter
- lqkfdjqd
~ <= press Enter
- toto
In normal mode o
add the -
but indented:
- lkdsj
~ <= press o
-
~ # in insert mode but indented
In normal mode O
add the -
not indented but line above:
- ~ <= 2. item added above
- lkdsj
~ <= 1. press O