I have a server with vim installed and an empty .vimrc
. I open a python file and run :set filetype=python
. I then try to indent a line with ==
and vim complains:
:.!indent
shell returned 2
Press ENTER or type command to continue
Then the line is replaced with
indent: Standard input:2: Error:Unexpected end of file
When I try :help =
, the buffer says
E433: No tags file
E149: Sorry, no help for =
Press ENTER or type command to continue
Is there a minimum configuration needed in order for =
to work?
:help =
. All information to be checked is there.indent
, or you don't have support for internal indenting with=
in Vim (which means, it has to use an externalindent
program). But, in this way, you seem to loose the ability to only indent a line (probablyindent
wants an entire file, a valid/complete text as input). Reference: stackoverflow.com/a/19590619/5000478. Also, even if.vimrc
is empty, it's still possible that a system-widevimrc
is used/read. Try starting vim asvim -u ~/.vimrc
and check how=
works (is it still relying onindent
?).