{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/3226","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/3226/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/3226/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/3226/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/3226","id":109382501,"number":3226,"title":"Decent folding like in Vim","user":{"login":"ReneFroger","id":5211845,"avatar_url":"https://avatars.githubusercontent.com/u/5211845?v=3","gravatar_id":"","url":"https://api.github.com/users/ReneFroger","html_url":"https://github.com/ReneFroger","followers_url":"https://api.github.com/users/ReneFroger/followers","following_url":"https://api.github.com/users/ReneFroger/following{/other_user}","gists_url":"https://api.github.com/users/ReneFroger/gists{/gist_id}","starred_url":"https://api.github.com/users/ReneFroger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReneFroger/subscriptions","organizations_url":"https://api.github.com/users/ReneFroger/orgs","repos_url":"https://api.github.com/users/ReneFroger/repos","events_url":"https://api.github.com/users/ReneFroger/events{/privacy}","received_events_url":"https://api.github.com/users/ReneFroger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/enhancement%20:-D","name":"enhancement :-D","color":"84b6eb"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Reported%20upstream","name":"Reported upstream","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-10-01T20:57:48Z","updated_at":"2015-11-03T08:34:27Z","closed_at":null,"body":"One of the things that I miss in Spacemacs, was the decent folding like Vim have. I opened [a topic about it](http://emacs.stackexchange.com/questions/14781/how-can-i-replicate-vims-code-folding) on Emacs Stackexchange. \r\n\r\n@mrkkrp took the challenge, and developed the package [Vimish fold](https://github.com/mrkkrp/vimish-fold) that succesfully emulates nearly all the abilities of Vim folding method. \r\n\r\nSee this screenscast to see it in the action:\r\n\r\n![72bfce16-6795-11e5-8c46-ffb3559cdc1d](https://cloud.githubusercontent.com/assets/5211845/10233609/d3bdce70-688f-11e5-8c73-c3ee4f8e93e6.gif)\r\n\r\nI was wondering if this could be included with Spacemacs, given the fact that one of the goals of Spacemacs is to emulate Vim. \r\n\r\nGiven the fact that Vim creates the folding in visual mode with the key `zf`, I remapped the features of Vimish fold, might be some inspiration for you? : \r\n\r\n    (key-seq-define evil-normal-state-map \"sf\" 'vimish-fold-toggle) \r\n    (key-seq-define evil-visual-state-map \"sf\" 'vimish-fold) \r\n    (key-seq-define evil-normal-state-map \"sd\" 'vimish-fold-delete) \r\n    (key-seq-define evil-normal-state-map \"sj\" 'vimish-fold-next-fold) \r\n    (key-seq-define evil-normal-state-map \"sk\" 'vimish-fold-previous-fold) \r\n\r\nNote that you will be still able to use the key `s`, but with another timing.\r\n \r\n"},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/153287416","html_url":"https://github.com/syl20bnr/spacemacs/issues/3226#issuecomment-153287416","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/3226","id":153287416,"user":{"login":"cataclysmic","id":4928443,"avatar_url":"https://avatars.githubusercontent.com/u/4928443?v=3","gravatar_id":"","url":"https://api.github.com/users/cataclysmic","html_url":"https://github.com/cataclysmic","followers_url":"https://api.github.com/users/cataclysmic/followers","following_url":"https://api.github.com/users/cataclysmic/following{/other_user}","gists_url":"https://api.github.com/users/cataclysmic/gists{/gist_id}","starred_url":"https://api.github.com/users/cataclysmic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cataclysmic/subscriptions","organizations_url":"https://api.github.com/users/cataclysmic/orgs","repos_url":"https://api.github.com/users/cataclysmic/repos","events_url":"https://api.github.com/users/cataclysmic/events{/privacy}","received_events_url":"https://api.github.com/users/cataclysmic/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T08:34:27Z","updated_at":"2015-11-03T08:34:27Z","body":"Great idea. I wanted to check all the options first. There just soooo many packages out there. ;-)"}}