Closed insanum closed 10 years ago
I used modelines and this plugin and haven't noticed any issues (but I don't necessarily use them together). I'll have a look at this though and get back to you. Thanks!
Ignore all those other commits. Only the first one is in question here. I accidentally made my pull request from my master branch. Oops.
I couldn't see anything in the global/local settings of the note buffer that would prevent the modeline from being processed. I know for a fact modeline=1 and modelines=5 and my modeline is the last line of the txt note.
closing this as the functionality as been put into pull request #58
I'm not totally sure this is the right solution to the problem, but my change works as expected.
For some reason when setting vim.current.buffer in the python code, any modelines in the note are not processed by vim. Forcing a call to doautocmd triggers modeline processing. I picked the BufReadPost group as that made the most sense.
I like to use modelines in my notes to set the FileType. Specifically txt files formatted as votl/vimorganizer files.