Something like this will do it, but will also match select in "INSERT ..  
VALUES ('select')"

exec '%s/\<\%('.join(['select','from','join','left','right'], 
'\|').'\)\>/\=toupper(submatch(0))/g'

-- 
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

Reply via email to