Not a Vorax Managed file

22 views
Skip to first unread message

Clive

unread,
Sep 1, 2015, 7:20:55 AM9/1/15
to vorax-discuss
Hi.

I am having a problem with files that I used to store PL/SQL package bodies. These are of extension type ".plb".

If I place the cursor on a plb file in the NERDTree window and press ,@ I get the message "Not a Vorax Managed file".
If I place the cursor over the main window showing the code for the .plb file and press the sequence '@ nothing happens accept that if I then press ENTER this message appears:

E354: Invalid register name : '^M'

Looking at the code I suspect I may need to modify g:vorax_plsql_associations, but I am not clear on what the format should be.If my assumptions is correct, could you please provide an example assignment statement?

Thanks,

Clive
 

Alexandru Tică

unread,
Sep 1, 2015, 7:31:26 AM9/1/15
to vorax-...@googlegroups.com
Hi Clive,

In your .vimrc add this:

let g:vorax_plsql_associations =
      \ {'FUNCTION' : 'fnc',
      \  'PROCEDURE' : 'prc',
      \  'TRIGGER' : 'trg',
      \  'PACKAGE_SPEC' : 'spc',
      \  'PACKAGE_BODY' : 'bdy',
      \  'PACKAGE' : 'pkg',
      \  'TYPE_SPEC' : 'tps',
      \  'TYPE_BODY' : 'tpb',
      \  'TYPE' : 'typ',
      \  'JAVA_SOURCE' : 'jsp'}

Just replace with your own file extension (e.g. instead of "bdy" add "plb").

Cheers,
Alec.

--
You received this message because you are subscribed to the Google Groups "vorax-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vorax-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
talek

Clive

unread,
Sep 1, 2015, 7:36:12 AM9/1/15
to vorax-discuss
Solution found.

Included this in the vimrc file:


let g:vorax_plsql_associations = {'FUNCTION' : 'fnc',
      \  'PROCEDURE' : 'prc',
      \  'TRIGGER' : 'trg',
      \  'PACKAGE_SPEC' : 'pls',
      \  'PACKAGE_BODY' : 'plb',

      \  'PACKAGE' : 'pkg',
      \  'TYPE_SPEC' : 'tps',
      \  'TYPE_BODY' : 'tpb',
      \  'TYPE' : 'typ',
      \  'JAVA_SOURCE' : 'jsp'}

Thanks,

Clive.

Clive

unread,
Sep 1, 2015, 7:57:58 AM9/1/15
to vorax-discuss
Thanks Alec, all sorted.
Reply all
Reply to author
Forward
0 new messages