simplenote-vim / simplenote.vim

vim plugin to interact with the simplenote service
http://www.vim.org/scripts/script.php?script_id=3582
MIT License
368 stars 31 forks source link

force autocommand processing for the BufReadPost group #54

Closed insanum closed 10 years ago

insanum commented 10 years ago

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.

atomicules commented 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!

insanum commented 10 years ago

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.

insanum commented 10 years ago

closing this as the functionality as been put into pull request #58