-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17/03/2012 15:33, stardiviner wrote:
>
> I want a vim script to convert SQL keyword(statement, clause, those highlig=
> ht group in file) to be
> converted to *uppercase* when I type command `:w` to save file.
> And another way is when I am typing: `select`, then vim automatically chang=
> e to `SELECT`. (this can
> be done with abbreviate).
>
> Use uppercase SQL keyword will improve the readability of sql code. That's =
> why I want this script.
>
> If you know a script can do this, or you will create a new script to do thi=
> s, please tell me.
> (I do not know Vimscript, so I ask this script here).
In Visual mode `U` will change case of the selected word.
See `:help case` for further options.
Cheers,
Phil...
- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.
Wm. Shakespeare - Much Ado About Nothing
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPZLUfAAoJEKpMeDHWT5ADWCIIALyXgahfAnnXmqe/W5aVl3j4
kDZXpYGGz0MllTHSX1cihl3KInBoKh0KqeZCBovI4iJGp91T6S881JOtJkrrc/pe
E+UD8Ymkc3gbq2EuRqXN/y1AxUotIk0EuMfYUsf5ukbRb6lpu8o1JPBQPYkHjQYr
kT2hR+EhMrTkOvkouwoIx8cYLuYOXj3OZ7ZNHRX1RldOIm2IwSLkblLM5OKO8ao7
6ToJLMXlmz+ZfpTrFXNl9GqnbuwGXnawh6FYxzoSAM/suT9gnELmrsf46kJyW2s6
VjopuUEvRhrZ05kY0XPCvL0O2P3KlKWITJAGaA06jCPhH5xOMB1M8+YGaqC1/Pc=
=VUrC
-----END PGP SIGNATURE-----
--
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