Vim Tips Wiki
Register
(how to specify relative path locations)
(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
  +
{{ScriptComments|publish: publish hyperlinked, syntax highlighted source code with Vim}}
  +
  +
==Path locations==
 
This is a wow script!
 
This is a wow script!
   
It took me a while to understand how to specify relative path locations.
+
It took me a while to understand how to specify relative path locations. I think they work as follows:
I think they work as follows:
 
 
 
* '''tags''' file: relative to dir where vim is running from
 
* '''tags''' file: relative to dir where vim is running from
 
* '''sources''': relative to dir where vim is running from; sets base dir of '''file list'''
 
* '''sources''': relative to dir where vim is running from; sets base dir of '''file list'''
 
* '''target''': relative to dir where vim is running from; sets base dir of html files; the same dir structure of '''file list''' is recreated in '''target''' dir
 
* '''target''': relative to dir where vim is running from; sets base dir of html files; the same dir structure of '''file list''' is recreated in '''target''' dir
 
* '''file list''': relative to '''sources''' dir
 
* '''file list''': relative to '''sources''' dir
  +
  +
==Comments==

Latest revision as of 07:38, 15 November 2011

Use this page to discuss script 2252 publish: publish hyperlinked, syntax highlighted source code with Vim

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Path locations[]

This is a wow script!

It took me a while to understand how to specify relative path locations. I think they work as follows:

  • tags file: relative to dir where vim is running from
  • sources: relative to dir where vim is running from; sets base dir of file list
  • target: relative to dir where vim is running from; sets base dir of html files; the same dir structure of file list is recreated in target dir
  • file list: relative to sources dir

Comments[]