Vim reflow paragraph adds unwanted indentation

When I use the `gqap 'command to reflow a paragraph in vim, vim seems to be trying to be smart and automatically indent, for example.

  • When the line ends with the character ',':
We protect your rights with two steps: (1) copyright the software, and (2),
   offer you this license which gives you legal permission to copy, distribute
   and / or modify the software.
  • If the string has inconsistent brackets:
Program or a portion of it, either verbatim or with modifications and / or
translated into another language. (Hereinafter, translation is included without
        limitation in the term "modification".) Each licensee is addressed as
"you". 

Is there any way to disable this?

Thank!

+3
source
4

? ': set'?

, , . smartindent autoindent, . ( si, ai)

+2

, cindent set. smartindent autoindent, . !

+1

, , , .txt . , , smartindent , .

+1

. :

:

, smartindent. , :

: nosmartindent

( ).

!

0

Source: https://habr.com/ru/post/1699653/


All Articles