The following is the contents of the Windows System Clipboard
- :function CurrentLineLength
- : len = strlen(getline("."))
- : return len
- :endfunction
I hit the colon and then control r I then hit shift 8 to paste the contents of the system clipboard.
I hit return and vim comes back with E488: Trailing Characters
I see some ^M characters in there and removing them does not help. I do know that I can paste the functions into a .vim file and read them that way so its not crippling but as I work through some examples of vim script this would be nice to have.
Is there something special about how functions are entered in or is it possible to paste them from the system clipboard?
Thanks!