On 1/26/2008 9:49:56 PM, Jack Williamson wrote:
>
> In some editors, using the space bar would push _all ten
> rows_ of text to the right, opening a rectangular
> whitespace region in the file.
> I find this to be very useful behavior sometimes.
> Can Vedit's column block behavior be configured
> to work this way?
I don't think there is such configuration option.
But you could use the following kludge:
Reconfigure the space key by adding the following line in your keyboard configuration file:
[VISUAL EXIT]IC(' ') if(BB>-1 && BM==COLUMN){#12=CL GP(BB) #10=CN While(CL<#12){IC(' ') L GC(#10)}}
The line must begin with space (since that is the key you are configuring), followed by at least one TAB or two spaces, and then the code above. (You can not see the spaces here since WebBoard removes any spaces at the beginning of line.)
However, this may cause some problems, at least in command mode window (the whole command string is entered instead of space). So a better solution might be to use a template editing event macro.
While testing the above, I found an error in Vedit macro language. I tried to change IC(' ') into IC(' ',IM) so that overwrite mode would work correctly. However, this does not work. It seems that Insert_Mode command does not return the current value of Insert Mode (as it is told in the Help), but instead just displays the value.
--
Pauli
P.S. If you want to add the spaces at the beginning of line, you can use Indent (F8).
|
|