On Wed, Sep 23, 2015 at 3:09 PM, Sonny Chee <sonny.chee@gmail.com> wrote:
Hey Guys,
I've defined a bunch of (SQL) keywords I would like to capitalize using "abbreviate". This works great when I am typing in fresh new file.
Is there a way to apply these abbreviations to an existing file?
I created this plugin for this exact reason:
SrchRplcHiGrp.vim : Search and/or replace based on a syntax highlight group
The default action will do exactly what you want.
Except I made it more general.
This gives you the ability to perform search and replace based on the syntax colouring of your Vim file.
Since SQL keywords are usually as a group (like keyword or statement) it can operate of those words of a given syntax group.
This one will also do it:
SQLUtilities : SQL utilities - Formatting, generate - columns lists, procedures for databases
It will also format your SQL queries.
It has an option that while it reformats your SQL, it can change the case of the keywords.
HTH,
David
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment