Now I check, I have updates for
sql.vim (maintainer David Fishburn <fishburn at ianywhere dot com>)
sqloracle.vim (maintainer Paul Moore <pf_moore AT yahoo.co.uk>)
plsql.vim (maintainer Jeff Lanzarotta <jefflanzarotta at yahoo dot com>)
I refactored mine so that for example sqloracle.vim and plsql.vim only contain SQL and PL/SQL keywords respectively (plsql.vim sources sqloracle.vim) instead of both containing everything.
> Now I check, I have updates for
> sql.vim (maintainer David Fishburn <fishburn at ianywhere dot com>)
> sqloracle.vim (maintainer Paul Moore <pf_moore AT yahoo.co.uk>)
> plsql.vim (maintainer Jeff Lanzarotta <jefflanzarotta at yahoo dot com>)
Well, since the files haven't been updated for a decade or so, I am not sure if these people still consider (or can consider) themselves as maintainers. Actually, _I_ would like to be a maintainer (or one of them).
Nonetheless, I will try to contact them.
>
> I refactored mine so that for example sqloracle.vim and plsql.vim only contain SQL and PL/SQL keywords respectively (plsql.vim sources sqloracle.vim) instead of both containing everything.
Since I often have anonymous PL/SQL blocks in SQL scripts (plus SQL*Plus commands) and since there is definitely a lot of SQL in PL/SQL code, I thought there is no point to have several files; all syntax info can be in one. Easier to maintain, and might be easier even for vim (less stuff to work with while displaying the source code).
Apologies David, I may have got carried away with the SQL-related .vim listing there. sql.vim is indeed up to date - I think I saw a new filedate on my copy and forgot it was because I'd downloaded it. I'd love to help updating the others though.
Also I have a new colours file - any idea how to submit it for review etc?
Apologies again, I meant sqloracle.vim and not sql.vim. The issues I had with autocompletion were a couple of months back and I forget the details - I'll recheck and post in a separate thread if needed so as not to hijack Szilard's, but yes I use $HOME\vimfiles (or $HOME/.vim on Mac).
> > I also simplified the highlighting so there is only one kind of "keyword", to remove the jumble you get where SELECT and AND etc all come out different colours (pink and green or whatever the default is). Also I have a colours file that's a bit more muted and 21st century IMHO than the supplied set.
>
> Typically, "SELECT" is a "sqlStatement" and an "AND" is a
> "sqlOperator". A sqlStatement begins a statement, and operators are
> AND, OR, BETWEEN, ...
>
> You can see the linkage in your syntax/sqloracle.vim file here:
>
> HiLink sqlOperator Operator
> HiLink sqlStatement Statement
>
> There is no reason why you can't change your colour file to indicate
> both of those should be highlighted the same colour.
>
That would certainly work, and I have done something similar for numeric and string literals (using "hi link Number String"). However I want my colour scheme to work across all languages including those - if they exist - where there is a useful highlighting distinction to be made between operators and other keywords.
Anyway this forum is a great find and I'll certainly be back with more questions.
--
You received this message from the "vim_use" 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
Does this syntax file define folding regions too?
--
Alessio Bolognino
Hi Alessio,
No it does not cover for code folding. I will consider that as I see benefit in it. I am not sure how difficult it is to implement yet, but it will take time. Therefore, the first version that I would like to see be released would only contain a (hopefully) full set of keywords/reserved words for proper syntax highlighting.
Regards,
Szilard
--
You received this message from the "vim_use" 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
I didn't touch the quoting rules - they are still the original. I'll have a look but I doubt I can improve on them.
I assigned VARCHAR and CHAR to the TODO highlighting group so that you can easily replace them with the standard VARCHAR2, or if it's code you can't change at least you can prepare for unintended side effects. In 20 years of PL/SQL development I have seen a valid use for CHAR once, and that was in 2000.
btw did you use all of the .vim files I posted, or just plsql.vim?
William
PS I think this group likes you to bottom-post, newsgroup-style, rather than at the top email-style.
--
You received this message from the "vim_use" 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
Interesting - the quoting issue goes away if you set filetype=sqloracle. My plsql.vim just sources that so I can't think any reason for it to have its own parsing rules for quoted text. It seems fixed if you comment out the following lines:
syn match plsqlCharLiteral "'[^']'"
syn match plsqlStringLiteral "'\([^']\|''\)*'"
syn match plsqlStringError "'.*$"
I can't see a colourscheme defined in my plsql.vim or sqloracle.vim, although I'd be interested to hear how you get on with katia.vim and gfn=Consolas:h8:cANSI. The colourscheme is PL/SQL-friendly, though should also be OK with Perl, shellscript etc (although I haven't quite worked out why Korn shell "[[" comes up red - trying to fix that...)
I'd also be interested to hear whet you think of my subtle tab character highlighting - it's set up in plsql.vim but activated in _gvimrc or an ftplugin script, with
let c_show_tabs = 1
In fact I also have an ftplugin/plsql.vim containing:
if exists("b:did_plsql_ftplugin")
finish
endif
let b:did_plsql_ftplugin = 1
setlocal textwidth=160 " 80 character lines
setlocal expandtab smarttab
setlocal ts=3 sw=3 autoindent
colorscheme katia
let c_show_tabs = 1
let c_space_errors = 1
--
You received this message from the "vim_use" 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
May I know when can we expect your updated files!