I have written a small menu that I use when I create manually the text files needed for the insertion of text into djvu.
The menu contains these lines:
:imenu djv.page (page <CR><CR>)<CR>.<Up><Up><Up><Esc>5la
:imenu djv.line (line <CR><CR>)<Up><Up><Esc>5la
:imenu djv.word <Tab>(word "")<Esc>3hi
:imenu djv.sep # -------------------------------------<CR><Esc>2xi
:imenu djv.sel select '.djvu'<CR>set-txt<Up><Esc>2li
Put these lines into a text file. Name it djv.vim and copy it in the plugin folder of the “dot”-vim folder in your home. This means in:
~/.vim/plugin
Under Windows, you have to put it in the corresponding place in vimfiles.
The menu is very useful. I use it to write repeting sequences of text (see the image). I have to insert only the coordinates for pages, lines and words.
The item of the menu that I use most often is the third one (the “word”).
In the screenshot, one can see how the menu is used for the creation of the skeleton of a text file for djvused.