I tried your script, but I was unable to save a VARA with the
tab in value field. I've copied a
tab from notepad++ and could successfully paste on the VARA field, but it disappears after I save it.
One silly option that I've thought about, is to filter only be alphanumeric characters inside your loop, removing everything else. This way you can also include other special characters that you don't want to trim (based on the ASCII code) and in the end you will not need to type a
tab or simulate it.
!ASCII 48 to 57
:if &char >= '0'
: if &char <= '9'
: print "[0-9]"
: endif
:endif
!ASCII 65 to 90
:if &char >= 'A'
: if &char <= 'Z'
: print "[A-Z]"
: endif
:endif
!ASCII 97 to 122
:if &char >= 'a'
: if &char <= 'z'
: print "[a-z]"
: endif
:endif
It would be good to have another function like UC_CRLF(), but returning the tab code, or have a CHAR(121) function that we could use the ASCII code.