Never mind. I was using split() incorrectly, I now see. (Note to self: Do
not attempt this sort of thing without having finished your coffee.)

My mistake. Feel free to ignore this. :)

Ben


On Mon, Feb 17, 2014 at 12:35 PM, Ben Klein <[email protected]> wrote:

> The docs for getline() say that when it's called without an 'end', it
> returns the text of the given line as a String (and that given an 'end', it
> returns a List).
>
>     This is text.
>     This is also text.
>
>     " Now, from the command line...
>     :echo getline(1)
>     This is text.
>     " That should be a String. So...
>     :echo getline(1).split(' ')
>     E730: using List as a String
>     E15: Invalid expression: getline(1).split(' ')
>     " Huh. So even asked for just one line, it's returning a List?
>     :echo join(getline(1))
>     E714: List required
>     0
>
> Am I misunderstanding something?
>
> Ben
>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui