Giter Club home page Giter Club logo

Comments (6)

tmhedberg avatar tmhedberg commented on July 19, 2024

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 [email protected] 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.

from simpylfold.

kevin4fly avatar kevin4fly commented on July 19, 2024

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.

from simpylfold.

kevin4fly avatar kevin4fly commented on July 19, 2024

here is a walk around:

autocmd filetype python setlocal foldopen+=insert

though it is not that perfect, it works.

from simpylfold.

mgedmin avatar mgedmin commented on July 19, 2024

Have you filed an UltiSnips bug? Because it sounds like a UltiSnips bug to me.

from simpylfold.

nfnty avatar nfnty commented on July 19, 2024

This is an inherit problem of using vim and is solved by using FastFold.

from simpylfold.

youz17 avatar youz17 commented on July 19, 2024

This is an inherit problem of using vim and is solved by using FastFold.

sorry, I can not understand you idea, could you say more detailed.
I meet this question also.
thank you.

from simpylfold.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.