On 7/20/2005 7:38:15 PM, Walt Pattinson wrote:
>In the case of
>CONFIG/TAB usually I want to
>set a tab at the column I've
>just placed the cursor (I
>rarely remember to look at the
>location first). Or maybe an
>indication of the current
>position in the tab menu?
It is easy to set tabs at current column, the following macro will do this.
// Set tab at current column
// Ian Binnie 23/07/2005
// ian_binnie at optusnet dot com dot au ( replace "at" "dot" by the normal characters.)
Save_Pos() // remember file position
#30=Buf_Num // Current Edit Buffer
#105=Cur_Col // current cursor column
#31=BUF_FREE // temporary buffer
Out_Reg(103) // redirect output to Reg.103
Reg_Set(103,"Config_Tab(", INSERT) // command begin -> R.103
Reg_Set(103,")", APPEND) // command end -> R.103
Call(103) // execute the built command
Restore_Pos() // back to old position
>On a similar note, is it
>possible to set a repeating
>tab-stop after an initial tab
>setting? For example, setting
>tabs every 6 places after
>setting an initial stop at 32.
It would be equally easy to set tabs at fixed intervals after this.
You may be interested in Christisn's "tabumat.vdm" & my "TabRight.vdm" "TabLeft.vdm" (also on Christian's site)