Every time i use snippets in vim while coding in Python i get a problem which i desire to get rid off. Here is the sequence of steps which leads to my problem:
fun and hit Tab to trigger snippets of a new function

On the last step i get all the body of my new function folded and i even don't see my cursor at the place i am currently typing.
Info:
python-mode plugin which defines foldingmethod
here ultisnips and vim-snippets. How could i fix such an issue?
I had a similar issue with PHP code completion. It would automatically fold anything above a return statement as I typed.
I likewise narrowed the issue to the YCM plugin; I disabled all other plugins and set YCM options to defaults.
The issue went away when I set foldmethod to manual in my vimrc:
set foldmethod=manual
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With