Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7657663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:05:02+00:00 2026-05-31T13:05:02+00:00

Since discovering VIM, I find it simpler to type SQL in lower case and

  • 0

Since discovering VIM, I find it simpler to type SQL in lower case and then to make the words that I need uppercase. Is there a way to skip over a word in visual mode such that it will not be made part of the selection, so that I might select all the MySQL keywords and then perform U on them? For instance, assuming this SQL query:

select a.name, b.userid from someTable a inner join anotherTable b on a.someField=b.someOtherField group by a.randomField sort on b.yetAnotherField desc;

I would like to select the first word (select), skip two words, select another word (from), skip two word, select two words (inner join), and so on.

I do have Ctrl-6 mapped to upper case letters (to avoid having Caps Lock activated in Normal mode), but I really do prefer to type out the SQL in lower case first and then to “fix” it. I also know that the lower case SQL is valid, but coding practices dictate that it should all be upper case in code.

I tried to write a function that would traverse the current line and uppercase all the MySQL keywords. However, even if I do go that route, I would still like to know the solution to skipping words in Visual mode as I see other uses for it as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T13:05:03+00:00Added an answer on May 31, 2026 at 1:05 pm

    If you are going to move your cursor along the whole line, another route is to not use visual mode at all:

    1. With the cursor on select, type gUiw to turn it into SELECT.
    2. Move to from with multiple w (inneficient, maybe) or with /fr<CR> (faster, less typing, maybe).
    3. Hit . to repeat the last edit and turn from into FROM.
    4. Repeat…
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was reading today about researchers discovering that NVidia's Phys-X libraries use x87 FP
i'm need to write a function that will flip all the characters of a
- Since discovering more about my problem I have modified my question A single
Since recent runtimes in iOS, we are able to define properties that will generate
Since named parameters are those parameters that are identified by their explicit name, instead
Since i'm writing a game in RoR, i need to have a game loop
Since Java 5, we've had boxing/unboxing of primitive types so that int is wrapped
Since the readers don't change anything, why we need ReaderLock?
I'm discovering problems with the AVAssetReader access to iPod library items in iOS5. Since
I'm in the process of learning RoR, and I'm liking everything that I'm discovering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.