Hi,

DCL is a scripting language for OpenVMS, whose lines of code must all start
with a $.

Here is a code excerpt (from
http://www.eight-cubed.com/articles/dcl_standards.html):

        $       on warning then goto nopriv
        $       set on
        $       set process/privilege=(sysnam,sysprv)
        $!...

        $nopriv:
        $       write sys$output "Required privs: SYSNAM, SYSPRV"
        $       status = 36
        $       goto exit
        $!...
        $exit:
        $       set process/privilege=(nosysnam,nosysprv)

        $       exit status + (0 * f$verify (old_verify))


Is there any clever way that the following features could work with this
kind of code?

1) dap (delete a paragraph): this currently deletes the whole source file -
because there are no empty lines between paragraphs (an "empty" line must
contain at least the $)

2) >> (indent a line): this indents the leading $ as well as the rest of the
line; instead, the dollar should stay in column 1, and only the rest of the
line should be indented

3) J (join lines); gqq (format the line): if multiple lines become one line,
or vice versa, the dollars are not removed/inserted as they should be

What I have come up with so far is using 'comments':
    :set comments=:$
This at least puts the $ sign on each new line.

Any other tricks/ideas would be appreciated. Is there another such language
that requires leading chars?

Sam

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui