Results 1 to 3 of 3

Thread: How to indent code. And vim.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    223

    How to indent code. And vim.

    Main question:

    Suppose there's a block of code I want to indent. How do I accomplish this without placing the cursor on each individual line and pressing tab for each line?

    Auxiliary question:

    Also, does anyone know if there's a vim/vi editor plugin that works with the Visual Basic IDE (I'm using the IDE that comes when you click on "Tools | Visual Basic" from an Excel spreadsheet.)

    If there's no vi/vim plugin for this IDE, is it possible to write one? Where would be a good place to start reading on how to write such a thing?

    Thanks!

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: How to indent code. And vim.

    1. Select code.
    2. Press Tab to indent/Shift+Tab to unindent.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2006
    Posts
    223

    Re: How to indent code. And vim.

    Great tip! Many thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width