Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fold Python's imports with VIM / SimpylFold #56

Merged
merged 1 commit into from
Apr 3, 2016
Merged

Fold Python's imports with VIM / SimpylFold #56

merged 1 commit into from
Apr 3, 2016

Conversation

Asher256
Copy link
Contributor

@Asher256 Asher256 commented Apr 3, 2016

A new feature to fold/group the Python imports (like the IDE Pycharm):

    from module import name
    import module

Folding the imports is useful because Python programmers spend more time
in the classes/methods rather than imports. It is always interesting to
fold the imports and unfold them only when we need to import a new
module in our Python source code.

For those who don't want to fold their Python imports, they can use this
option:

    let g:SimpylFold_fold_import = 0

A new feature to fold/group the Python imports (like the IDE Pycharm):
    from module import name
    import module

Folding the imports is useful because Python programmers spend more time
in the classes/methods rather than imports. It is always interesting to
fold the imports and unfold them only when we need to import a new
module in our Python source code.

For those who don't want to fold their Python imports, they can use this
option:
    let g:SimpylFold_fold_import = 0
@tmhedberg tmhedberg merged commit 833e767 into tmhedberg:master Apr 3, 2016
@tmhedberg
Copy link
Owner

Thanks!

@Asher256
Copy link
Contributor Author

Asher256 commented Apr 5, 2016

You are welcome Taylor!

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.

None yet

2 participants