A
A
Ali Aliyev2014-10-24 18:08:54
Python
Ali Aliyev, 2014-10-24 18:08:54

How to implement automatic folding of imports when opening a file?

The situation is this, the project has become large and a very large number of imports in one file. PyCharm has such a feature that when you open a file, imports are automatically folded. Is it possible to implement the same for Vim?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SilentFl, 2014-10-27
@SilentFl

you can do something like this:
:autocmd BufWinEnter * let &foldlevel = 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question