{"action":"created","issue":{"url":"https://api.github.com/repos/Konfekt/FastFold/issues/27","labels_url":"https://api.github.com/repos/Konfekt/FastFold/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Konfekt/FastFold/issues/27/comments","events_url":"https://api.github.com/repos/Konfekt/FastFold/issues/27/events","html_url":"https://github.com/Konfekt/FastFold/issues/27","id":121446191,"number":27,"title":"Support different fold methods in different buffers","user":{"login":"lervag","id":998898,"avatar_url":"https://avatars.githubusercontent.com/u/998898?v=3","gravatar_id":"","url":"https://api.github.com/users/lervag","html_url":"https://github.com/lervag","followers_url":"https://api.github.com/users/lervag/followers","following_url":"https://api.github.com/users/lervag/following{/other_user}","gists_url":"https://api.github.com/users/lervag/gists{/gist_id}","starred_url":"https://api.github.com/users/lervag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lervag/subscriptions","organizations_url":"https://api.github.com/users/lervag/orgs","repos_url":"https://api.github.com/users/lervag/repos","events_url":"https://api.github.com/users/lervag/events{/privacy}","received_events_url":"https://api.github.com/users/lervag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T09:58:07Z","updated_at":"2015-12-10T21:09:20Z","closed_at":"2015-12-10T21:09:20Z","body":"Hi. If I open a tex file that uses `fdm=expr`, then open a bib file that uses `fdm=syntax` (set from a personal ftplugin file), then the `fdm=syntax` will override the `expr` setting for tex files in FastFold. That is: FastFold no longer remembers that the tex file should generate folds with `fdm=expr`.\r\n\r\nI think the reason that this does not work is because FastFold uses window variables (e.g. `w:lastfdm`) to store the last `fdm` setting. I think it should rather use a buffer variable `b:lastfdm`."},"comment":{"url":"https://api.github.com/repos/Konfekt/FastFold/issues/comments/163749907","html_url":"https://github.com/Konfekt/FastFold/issues/27#issuecomment-163749907","issue_url":"https://api.github.com/repos/Konfekt/FastFold/issues/27","id":163749907,"user":{"login":"Konfekt","id":7195553,"avatar_url":"https://avatars.githubusercontent.com/u/7195553?v=3","gravatar_id":"","url":"https://api.github.com/users/Konfekt","html_url":"https://github.com/Konfekt","followers_url":"https://api.github.com/users/Konfekt/followers","following_url":"https://api.github.com/users/Konfekt/following{/other_user}","gists_url":"https://api.github.com/users/Konfekt/gists{/gist_id}","starred_url":"https://api.github.com/users/Konfekt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konfekt/subscriptions","organizations_url":"https://api.github.com/users/Konfekt/orgs","repos_url":"https://api.github.com/users/Konfekt/repos","events_url":"https://api.github.com/users/Konfekt/events{/privacy}","received_events_url":"https://api.github.com/users/Konfekt/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T21:09:20Z","updated_at":"2015-12-10T21:09:20Z","body":"Pushed a commit that makes `fdm`as buffer local as possible. As I use `vim-stay`, I didn't notice this issue because it was covered by https://github.com/kopischke/vim-stay/blob/master/plugin/stay.vim#L62. Surprised nobody complained before."}}