Nikolai Weibull wrote:
On 4/24/07, Ilya Sher <[EMAIL PROTECTED]> wrote:
Robert Lee wrote:
> [snip]

> Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe
> using SpiderMonkey) so that people don't need to learn a new language
If I understand you correctly, you assume that
ECMAScript is the most popular language among
the people that wish to customize VIM. How
do you know the assumption is right?

Aw, come on.  Everyone knows ECMAScript.  It's like with HTML:
everyone knows HTML.  It's like on the web and stuff.

I mean, seriously, it's a lot more intuitive to write

Vim.options['formatoptions'] = Vim.options['formatoptions'].replace('t', "")

than

:set fo-=t

It's all about domain specific languages.  It's said so on the internet.

 nikolai


More intuitive?

        :set fo-=t

"remove t from 'fo'". Nothing more intuitive than that, especially when there is already ":set fo+=t". If I were /required/ to learn that more verbose gobbledygook, I'd be sure to make lots more errors writing wtf-script.

What about ;-)

[...]
DATA DIVISION.
WORKING-STORAGE SECTION.
77 I PICTURE S9(18) COMPUTATIONAL.
[...]
01 FORMATOPTIONS.
  03 FORMAT-OPTION PICTURE X
        OCCURS 20 TIMES.
[...]
CONSTANT SECTION.
[...]
77 FORMATOPTIONS-SIZE PICTURE 99 VALUE 20
        USAGE COMPUTATIONAL.
[...]
PROCEDURE DIVISION.
[...]
        MOVE 1 TO I.
X1234-1.
        IF FORMAT-OPTION (I) IS EQUAL TO SPACE GO TO X1234-EXIT.
        IF FORMAT-OPTION (I) IS EQUAL TO "t" GO TO X1234-2.
        ADD 1 TO I.
        IF I IS GREATER THAN FORMATOPTIONS-SIZE GO TO X1234-EXIT.
        GO TO X1234-1.
X1234-2.
        IF I IS EQUAL TO FORMATOPTIONS-SIZE THEN
                MOVE SPACE TO FORMAT-OPTION (I)
                GO TO X1234-EXIT.
        MOVE FORMAT-OPTION (I + 1) TO FORMAT-OPTION (I).
        ADD 1 TO I.
        IF FORMAT-OPTION (I) IS EQUAL TO SPACE
                GO TO X1234-EXIT.
        GO TO X1234-2.
X1234-EXIT.
        EXIT.
[...]

_That_ is really "intuitive", don't you think? ;-)


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
195. Your cat has its own home page.

Reply via email to