PDA

Click to See Complete Forum and Search --> : How to indent code. And vim.


caffeine
Feb 2nd, 2007, 09:35 AM
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!

penagate
Feb 2nd, 2007, 09:38 AM
1. Select code.
2. Press Tab to indent/Shift+Tab to unindent.

caffeine
Feb 2nd, 2007, 09:41 AM
Great tip! Many thanks!