P
P
pcdesign2019-10-17 11:16:44
vim
pcdesign, 2019-10-17 11:16:44

Why does vim format nginx.conf strangely?

Before gg=G
5da823179c59f030528063.png
After gg=G, type format the file.
5da823399566b001447572.png
.vimrc is empty

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valentine, 2019-10-17
@vvpoloskin

:help =

={motion}        Filter {motion} lines through the external program
                         given with the 'equalprg' option.  When the 'equalprg'
                         option is empty (this is the default), use the
                         internal formatting function C-indenting and
                         'lisp'.  But when 'indentexpr' is not empty, it will
                         be used instead indent-expression.  When Vim was
                         compiled without internal formatting then the "indent"
                         program is used as a last resort.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question