Lost in formatoptions …

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Lost in formatoptions …

Matěj Cepl-2
Hi,

trying to use vim for writing long prose and I am playing with
the optimal value for formatoptions. Currently I have

     set formatoptions=1tcroqlav

but I think I have something wrong.  Somehow 'a' is too active
to me and I am in the situation that I cannot split a paragraph
in the middle. When I enter one CR, the line splits, but when
I press ENTER again, nothing happens. I have to set paste, make
change, set nopaste and reformat, which is obviously wrong.

What do I do wrong?

Best,

Matěj
--
http://matej.ceplovi.cz/blog/, Jabber: mcepl<at>ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
As a rule of thumb, the more qualifiers there are before the name
of a country, the more corrupt the rulers. A country called The
Socialist People's Democratic Republic of X is probably the last
place in the world you'd want to live.
     -- Paul Graham discussing (not only) Nigerian spam
        (http://www.paulgraham.com/spam.html)

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Lost in formatoptions …

Nikolay Aleksandrovich Pavlov
2017-10-01 14:01 GMT+03:00 Matěj Cepl <[hidden email]>:

> Hi,
>
> trying to use vim for writing long prose and I am playing with
> the optimal value for formatoptions. Currently I have
>
>      set formatoptions=1tcroqlav
>
> but I think I have something wrong.  Somehow 'a' is too active
> to me and I am in the situation that I cannot split a paragraph
> in the middle. When I enter one CR, the line splits, but when
> I press ENTER again, nothing happens. I have to set paste, make
> change, set nopaste and reformat, which is obviously wrong.
>
> What do I do wrong?

You are trying to use `a` without `w`. Using trailing whitespaces is
the only sane variant of using `a` &formatoptions flag, other variants
are too restrictive and thus utterly broken.

>
> Best,
>
> Matěj
> --
> http://matej.ceplovi.cz/blog/, Jabber: mcepl<at>ceplovi.cz
> GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
>
> As a rule of thumb, the more qualifiers there are before the name
> of a country, the more corrupt the rulers. A country called The
> Socialist People's Democratic Republic of X is probably the last
> place in the world you'd want to live.
>      -- Paul Graham discussing (not only) Nigerian spam
>         (http://www.paulgraham.com/spam.html)
>
> --
> --
> You received this message from the "vim_use" 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_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Lost in formatoptions …

Nikolay Aleksandrovich Pavlov
2017-10-01 21:43 GMT+03:00 Nikolay Aleksandrovich Pavlov <[hidden email]>:

> 2017-10-01 14:01 GMT+03:00 Matěj Cepl <[hidden email]>:
>> Hi,
>>
>> trying to use vim for writing long prose and I am playing with
>> the optimal value for formatoptions. Currently I have
>>
>>      set formatoptions=1tcroqlav
>>
>> but I think I have something wrong.  Somehow 'a' is too active
>> to me and I am in the situation that I cannot split a paragraph
>> in the middle. When I enter one CR, the line splits, but when
>> I press ENTER again, nothing happens. I have to set paste, make
>> change, set nopaste and reformat, which is obviously wrong.
>>
>> What do I do wrong?
>
> You are trying to use `a` without `w`. Using trailing whitespaces is
> the only sane variant of using `a` &formatoptions flag, other variants
> are too restrictive and thus utterly broken.
>
>>
>> Best,
>>
>> Matěj
>> --
>> http://matej.ceplovi.cz/blog/, Jabber: mcepl<at>ceplovi.cz
>> GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
>>
>> As a rule of thumb, the more qualifiers there are before the name
>> of a country, the more corrupt the rulers. A country called The
>> Socialist People's Democratic Republic of X is probably the last
>> place in the world you'd want to live.
>>      -- Paul Graham discussing (not only) Nigerian spam
>>         (http://www.paulgraham.com/spam.html)
>>
>> --
>> --
>> You received this message from the "vim_use" 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_use" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>> For more options, visit https://groups.google.com/d/optout.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Lost in formatoptions …

Tony Mechelynck
In reply to this post by Matěj Cepl-2
On Sun, Oct 1, 2017 at 1:01 PM, Matěj Cepl <[hidden email]> wrote:
[...]
> As a rule of thumb, the more qualifiers there are before the name
> of a country, the more corrupt the rulers. A country called The
> Socialist People's Democratic Republic of X is probably the last
> place in the world you'd want to live.
>      -- Paul Graham discussing (not only) Nigerian spam
>         (http://www.paulgraham.com/spam.html)

Makes me wonder. In English or in its native language? Depending on
the language, what used to come before can sometimes go behind and
vice-versa. Now let's try a few examples to see how the proposed rule
of thumb stands against them:

French Republic / République française

United Kingdom of Great Britain and Northern Ireland

United States of America

People's Republic of China / simplified hanzi: 中华人民共和国, Mandarin:
Zhōnghuá Rénmín Gònghéguó, Cantonese: zung^1 waa^4 jan^4 man^4 gung^6
wo^4 gwok^3, where the first syllable is the one which conveys the
idea of "China" or "middle", or the first two syllables "Middle-land".

Russian Federation / Российская Федерация, Rossiyskaya Federatsiya

Republic of India / Bhārat Gaṇarājya (where Bhārat means "India"), I
didn't find how to write it in devanagari.

If it's in the native language, then of all the above the UK has the
most corrupt leaders, and if it's in English it's ex-æquo with China
(3 prefixed words) and more corrupt than at least three of the other
four. Where to put the USA depends on whether you regard "United
States" or "America" as the country's name, but as a caveat, in the
latter case it would seem to mean that that country lays claim to a
"legitimate home territory" extending from Alaska to Tierra del Fuego
(inclusive) with no intervening breaks… Come to think of it, maybe
that's how its present President sees things.


:-P
Tony.

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.