sponsor Vim development Vim logo Vim Book Ad

RSTO : Goto function (open/create) for ReStructured Text directives

 script karma  Rating 0/0, Downloaded by 576  Comments, bugs, improvements  Vim wiki

created by
Paul Yosifov
 
script type
utility
 
description
Helper to open files referenced in ReStructuredText directives (image/figure/include). If text/file does not exist then will be added/created. Opening is possible with go to position of the file (via line number or pattern options in the directive) or not. Adding handlers of other directives is simple.

So, current version supports ".. include::" with ":start-line:", ":start-after:" options (to jump) and ".. image::", ".. figure::" directives.

Default key bindings are:
,gf - simple open existent file
,gF - forced open (create, jump to position in the file)

Settings are:
RSTO_imgopen - path (+ arguments) to exe file to open image
RSTO_imgnew - path (+ arguments) to exe file to create nonexistent image
g:RSTO_handlers - only to add own directives' handlers!

Good luck!
 
install details
Copy into your vimfiles/plugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
rsto.vim 0.0.2 2011-11-20 7.0 Paul Yosifov Bug-fixing
rsto.vim 0.0.1 2011-11-18 7.0 Paul Yosifov Initial upload
ip used for rating: 3.17.28.48

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github