Konfekt / FastFold

Speed up Vim by updating folds only when called-for.
708 stars 24 forks source link

calling vim-go plugin :GoFmt causes all folds to close in current buffer #31

Closed oryband closed 8 years ago

oryband commented 8 years ago

When using vim-go along with FastFold, and calling :GoFmt, all folds are closed in the curretn buffer. This happens either when setting let g:go_fmt_autosave = 0 or to = 1 (and saving the buffer, which triggers :GoFmt).

This really hurts the workflow, since it causes the user to lose its cursor on every buffer save. Only solution I have for now is to turn off calling :GoFmt on save.

Any idea why this happens and how to solve this?

oryband commented 8 years ago

Update: I noticed this also happens when calling the variable refactor function :GoRename

Konfekt commented 8 years ago

Ahhhh, there has Allready been a Thread in go-lang Discussing this and a Patch for it, probably not in Master Yet.

Konfekt commented 8 years ago

Herne we go: https://github.com/fatih/vim-go/issues/502#issuecomment-182636048

oryband commented 8 years ago

@Konfekt thanks! awesome maintainer you are

oryband commented 8 years ago

for docs sake, the pr is at fatih/vim-go#691