Hello,
Despite having read a lot of posts, I have not found a solution to my
problem.
I would like to write texts with numbered lists, but I face problems
with indentation from the second line of each items:
Hereunder what I would like to have:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta
ac ligula vitae semper. Proin placerat nunc ac dui vestibulum, non
rutrum neque dignissim.
1. Sed quis volutpat sem, vel ullamcorper libero. Mauris ut
augue nec risus ultricies facilisis. Nam egestas dui sodales
consequat facilisis.
2. Nam id faucibus nisi. Mauris ligula felis, egestas eget
mauris non, efficitur hendrerit magna. Duis vel porta lacus,
quis suscipit quam. Vivamus egestas enim ac tortor tincidunt,
a ultricies ex vestibulum.
...
...
99. Fusce a massa ultricies, porta ligula in, posuere diam.
Nullam congue neque a ligula accumsan tincidunt.
But this is what I have when I type the text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta
ac ligula vitae semper. Proin placerat nunc ac dui vestibulum, non
rutrum neque dignissim.
1. Sed quis volutpat sem, vel ullamcorper libero. Mauris ut
augue nec risus ultricies facilisis. Nam egestas dui sodales
consequat facilisis.
2. Nam id faucibus nisi. Mauris ligula felis, egestas eget
mauris non, efficitur hendrerit magna. Duis vel porta lacus,
quis suscipit quam. Vivamus egestas enim ac tortor tincidunt, a
ultricies ex vestibulum.
...
...
99. Fusce a massa ultricies, porta ligula in, posuere diam.
Nullam congue neque a ligula accumsan tincidunt.
I have, in my ~/.vimrc
set autoindent
I tried
set formatlistpat=^\\s*[0-9*]\\+[\\]:.)}\\t\ ]\\s*
And also tried
set formatlistpat=^\\s*[0-9*]\\+[\\]:.)}\\t\ ]\\s*
set formatoptions-=c
set comments-=mb:*
None of what I tried works.
Any clue to achieve what I fight for?
regards,
--
Rand Pritelrohm
~~ *NIX & *BSD ~~