jceb / vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
http://www.vim.org/scripts/script.php?script_id=3642
Other
3.12k stars 266 forks source link

Multiple issues on NeoVim #213

Closed Ron89 closed 8 years ago

Ron89 commented 8 years ago

Multiple functionalities is not working on Neovim:

Ron89 commented 8 years ago

As reviewing the code, I think at least the second and third issue listed above are from NeoVim's "Out-of-Bound" handling. Currently the issue is still open and have a pull request not implemented yet.

I also have written some fix to bypass the issue, essentially by revising VimBuffer:write and EditCheckbox:new_checkbox, so that Vim.current.buffer first append a newline. But because the heading's handling is a bit tricky, I haven't locate the part responsible for the first issue as yet.

jceb commented 8 years ago

Thanks for figuring out the differences and creating workarounds. Much appreciated! Let me know when there is something to be merged.

Ron89 commented 8 years ago

Thanks to your comment on issue #196, I realized that problem with New Headings Above/Below-before-content not working is actually a separate issue that multiple related mapping simply won't work(I didn't realize it because I run vim in GUI and neovim on CLI as it don't have a stable GUI yet). I checked the leader key mapping for those functions and they work fine.

I just sent in the pull request #214. It's a pretty ugly workaround, but works on my vim and neovim.