{"action":"created","issue":{"url":"https://api.github.com/repos/Konfekt/FastFold/issues/30","repository_url":"https://api.github.com/repos/Konfekt/FastFold","labels_url":"https://api.github.com/repos/Konfekt/FastFold/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Konfekt/FastFold/issues/30/comments","events_url":"https://api.github.com/repos/Konfekt/FastFold/issues/30/events","html_url":"https://github.com/Konfekt/FastFold/issues/30","id":133482366,"number":30,"title":"FastFold not automatically enabled on buffers in terminal vim","user":{"login":"jmacdonagh","id":505836,"avatar_url":"https://avatars.githubusercontent.com/u/505836?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdonagh","html_url":"https://github.com/jmacdonagh","followers_url":"https://api.github.com/users/jmacdonagh/followers","following_url":"https://api.github.com/users/jmacdonagh/following{/other_user}","gists_url":"https://api.github.com/users/jmacdonagh/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdonagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdonagh/subscriptions","organizations_url":"https://api.github.com/users/jmacdonagh/orgs","repos_url":"https://api.github.com/users/jmacdonagh/repos","events_url":"https://api.github.com/users/jmacdonagh/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdonagh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-13T23:19:18Z","updated_at":"2016-02-14T23:59:33Z","closed_at":"2016-02-14T23:59:33Z","body":"I get different behavior from FastFold if I'm in a terminal vs graphical vim (in my case, MacVim on OS X).\r\n\r\nI have `foldmethod=syntax` in my .vimrc. If I run `vim foo.c` (i.e. terminal vim), the file opens up with all buffers already folded as expected. If I start inserting text, all folds after the cursor get unfolded when I enter in key syntax characters (such as `}`). If I start again with `vim foo.c`, and run `zuz` before entering text, everything works as expected (folds not updated until save, etc...)\r\n\r\nIf I start up MacVim and edit `foo.c`, FastFold appears to be fully enabled immediately, without requiring `zuz`.\r\n\r\nI removed all extra plugins and config, and it still happens. Here's my config:\r\n\r\n.vimrc:\r\n```\r\nset nocompatible\r\n\r\nruntime bundle/tpope-vim-pathogen/autoload/pathogen.vim\r\nif (exists(\"g:loaded_pathogen\") && g:loaded_pathogen)\r\n    execute pathogen#infect()\r\n    execute pathogen#helptags()\r\nendif\r\n\r\nsyntax enable\r\nset foldmethod=syntax\r\n```\r\n\r\n```\r\n$ ls .vim/bundle/\r\nFastFold           tpope-vim-pathogen\r\n```\r\n\r\n```\r\n$ cd .vim/bundle/FastForward && git rev-parse --verify HEAD\r\nc2a49d021545350184161c10886ebd8bfef1d5f8\r\n```\r\n\r\nfoo.c:\r\n```c\r\n\r\n// Empty line above is where I start entering text\r\nvoid foo()\r\n{\r\n}\r\n```\r\n\r\nAnd my vim version:\r\n```\r\n$ vim --version\r\nIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug 25 2015 19:46:07)\r\nMacOS X (unix) version\r\nIncluded patches: 1-769\r\nCompiled by Homebrew\r\nHuge version with MacVim GUI.  Features included (+) or not (-):\r\n+acl             +file_in_path    +mouse_sgr       +tag_binary\r\n+arabic          +find_in_path    -mouse_sysmouse  +tag_old_static\r\n+autocmd         +float           +mouse_urxvt     -tag_any_white\r\n+balloon_eval    +folding         +mouse_xterm     +tcl\r\n+browse          -footer          +multi_byte      +terminfo\r\n++builtin_terms  +fork()          +multi_lang      +termresponse\r\n+byte_offset     +fullscreen      -mzscheme        +textobjects\r\n+cindent         -gettext         +netbeans_intg   +title\r\n+clientserver    -hangul_input    +odbeditor       +toolbar\r\n+clipboard       +iconv           +path_extra      +transparency\r\n+cmdline_compl   +insert_expand   +perl            +user_commands\r\n+cmdline_hist    +jumplist        +persistent_undo +vertsplit\r\n+cmdline_info    +keymap          +postscript      +virtualedit\r\n+comments        +langmap         +printer         +visual\r\n+conceal         +libcall         +profile         +visualextra\r\n+cryptv          +linebreak       +python          +viminfo\r\n+cscope          +lispindent      -python3         +vreplace\r\n+cursorbind      +listcmds        +quickfix        +wildignore\r\n+cursorshape     +localmap        +reltime         +wildmenu\r\n+dialog_con_gui  -lua             +rightleft       +windows\r\n+diff            +menu            +ruby            +writebackup\r\n+digraphs        +mksession       +scrollbind      -X11\r\n+dnd             +modify_fname    +signs           -xfontset\r\n-ebcdic          +mouse           +smartindent     +xim\r\n+emacs_tags      +mouseshape      -sniff           -xsmp\r\n+eval            +mouse_dec       +startuptime     -xterm_clipboard\r\n+ex_extra        -mouse_gpm       +statusline      -xterm_save\r\n+extra_search    -mouse_jsbterm   -sun_workshop    -xpm\r\n+farsi           +mouse_netterm   +syntax\r\n   system vimrc file: \"$VIM/vimrc\"\r\n     user vimrc file: \"$HOME/.vimrc\"\r\n 2nd user vimrc file: \"~/.vim/vimrc\"\r\n      user exrc file: \"$HOME/.exrc\"\r\n  system gvimrc file: \"$VIM/gvimrc\"\r\n    user gvimrc file: \"$HOME/.gvimrc\"\r\n2nd user gvimrc file: \"~/.vim/gvimrc\"\r\n    system menu file: \"$VIMRUNTIME/menu.vim\"\r\n  fall-back for $VIM: \"/Applications/MacVim.app/Contents/Resources/vim\"\r\nCompilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X_UNIX  -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1     -I/System/Library/Frameworks/Tcl.framework/Headers  -D_REENTRANT=1  -D_THREAD_SAFE=1  -D_DARWIN_C_SOURCE=1\r\nLinking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib -L/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -framework CoreFoundation -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -framework Python  -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby\r\n```\r\n\r\nAny help would be greatly appreciated. Thanks!"},"comment":{"url":"https://api.github.com/repos/Konfekt/FastFold/issues/comments/184008757","html_url":"https://github.com/Konfekt/FastFold/issues/30#issuecomment-184008757","issue_url":"https://api.github.com/repos/Konfekt/FastFold/issues/30","id":184008757,"user":{"login":"jmacdonagh","id":505836,"avatar_url":"https://avatars.githubusercontent.com/u/505836?v=3","gravatar_id":"","url":"https://api.github.com/users/jmacdonagh","html_url":"https://github.com/jmacdonagh","followers_url":"https://api.github.com/users/jmacdonagh/followers","following_url":"https://api.github.com/users/jmacdonagh/following{/other_user}","gists_url":"https://api.github.com/users/jmacdonagh/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdonagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdonagh/subscriptions","organizations_url":"https://api.github.com/users/jmacdonagh/orgs","repos_url":"https://api.github.com/users/jmacdonagh/repos","events_url":"https://api.github.com/users/jmacdonagh/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdonagh/received_events","type":"User","site_admin":false},"created_at":"2016-02-14T23:59:33Z","updated_at":"2016-02-14T23:59:33Z","body":"Just tested it, seems to be working great. Thanks for the awesome plugin and your quick response / fix!"}}