conflict with ultisnips
Closed this issue · 6 comments
it is conflict with ultisnips
when i am opening a python file, typing class
and followed by <tab>
key to trigger a python class completion, SimpylFold
folds the code where i am typing.
I don't use or know about UltiSnips, but it's likely because SimpylFold
folds all of the class and function definitions it can find. If UltiSnips
is inserting a class definition into your buffer, that'll be folded as well.
Vim won't fold the cursor line when in insert mode, so if you're seeing the
cursor line folded while typing, then it sounds like UltiSnips must be
dropping you out of insert mode to perform the completion and then starting
insert mode again. If that's the case, I can't really help you; leaving
insert mode has side effects and it's UltiSnips's responsibility to deal
with that if it's going to take that approach.
If there's something that SimpylFold can do to improve compatibility with
UltiSnips, then patches are welcome.
On Tue, Oct 28, 2014 at 12:43 AM, Kevin notifications@github.com wrote:
it is conflict with ultisnips https://github.com/SirVer/ultisnips
when i am opening a python file, typing class and followed by key
to trigger a python class completion, SimpylFold folds the code where i
am typing.—
Reply to this email directly or view it on GitHub
#29.
thanks for your reply and this plugin is the best for python folding after i have tried many.
i am not familiar with VimL nor python. i am learning both of them and i hope i am able to do something for them in the future.
here is a walk around:
autocmd filetype python setlocal foldopen+=insert
though it is not that perfect, it works.
Have you filed an UltiSnips bug? Because it sounds like a UltiSnips bug to me.