kynan/dokuvimki — pull request #3 by kepi (2014-02-02 22:57:16+00:00)
Title: Fix wrong buffer indexes

Today I installed dokuvimki and I got error when executing vim +DokuVimKi

```
Refreshing page index!
Refreshing media index!
Traceback (most recent call last):
File "", line 1, in
File "", line 983, in dokuvimki
File "", line 76, in __init__
File "", line 388, in index
vim.error: cannot save undo information
Error detected while processing :
E21: Cannot make changes, 'modifiable' is off
```

After your help and 2 hours of testing :) I found out that with my version vim.buffers have same numbers as returned from bufnr function.

Maybe there is some change in vim with new versions, I'm not sure. My vim version is 7.4.052

With this fix, everything is working on my computer.