mrtazz/simplenote.vim — pull request #58 by insanum (2014-06-18 21:06:18+00:00)
Title: force autocommand processing for the BufReadPost group when the buffer is set by python

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.

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.