Skip to content

Conversation

@aykamko
Copy link

@aykamko aykamko commented Jul 27, 2017

No description provided.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

By default, this plugin sets ``shiftwidth``, ``tabstop``, and ``softtabstop`` to 4 on startup. This behavior can be disabled adding ``let g:python_pep8_setlocal_indent = 0`` to your vimrc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using the value from there?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(4 being the default then)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the point is for working with multiple repos, e.g. TensorFlow uses sw=2

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. 0 would still disable it (in case you want to set it yourself), but you could specify 2 here then for example.

@blueyed
Copy link
Member

blueyed commented Jul 29, 2017

Could this be combined with #79 ?

@blueyed
Copy link
Member

blueyed commented Jul 29, 2017

Related: #70

Maybe we should just remove all 3 of them?
It is not the job of an indent plugin to do this, but rather of a ftplugin.

blueyed added a commit that referenced this pull request Jul 29, 2017
It is not the job of an indent plugin to set those.

Closes #70.
Closes #80.
@blueyed blueyed closed this in #83 Jul 29, 2017
blueyed added a commit that referenced this pull request Jul 29, 2017
It is not the job of an indent plugin to set those.

Closes #70.
Closes #80.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants