Windows scriptin and user input

10 views
Skip to first unread message

Ross Beehler

unread,
Sep 16, 2011, 8:11:08 AM9/16/11
to vim_use
In Windows, when I run vim with the -s command line argument and the
scriptin file calls the input function, the following line is not
entered as input, but is instead executed as normal commands. For
example, with the following command file:

:call input("Enter something: ")
something

If I start vim with the following command:

vim -s commands

the result is this (line numbers included):

1 omething
2
3

As you can see, it uses 's' in 'something' to enter INSERT mode and
then types the remainder of the commands instead of allowing
'something' to fulfill the input function call.

Any ideas?

This does work on my MacBook Pro.

As a side note, this functionality is necessary when using the robot-
vim ruby gem, which is required for developing the vim-ruby-
refactoring vim plugin.

Thanks,
Ross
Reply all
Reply to author
Forward
0 new messages