-5

I need to know how to reindent the code with syntastic.

I have tried using:

:call Retab()   ## it is showing it's invalid
:call GetPythonIndent(v:lnum)

I need a plugin support.Plz don't provide code for .vimrc.

4
  • gg=G does not work? – Alex Kroll Oct 6 '17 at 20:48
  • 1
    Syntastic is a linting plugin. It doesn't have anything to do with indenting. – Tumbler41 Oct 6 '17 at 21:23
  • so how can i indent it with some other plugin.Plz help!! – Harsh Jain Oct 7 '17 at 0:39
  • 1
    What do you need a plugin for? Try using Vims native indenting feature first, before you go looking for a plugin. – Christian Brabandt Oct 7 '17 at 7:12
1

You should be able to use vims built in auto-indentation with the command (from normal mode type the following):

gg=G

You may also like to ensure you have set the necessary settings in your .vimrc so your indentation is how you want it (eg shiftwidth tabstop expandtab etc)

Not the answer you're looking for? Browse other questions tagged or ask your own question.