Contents
Why do I get e488 trailing characters in Vimscript?
My intent is to write a function that supports creating a new file according to a template. Some input items will be asked from the vi user, such as the name of the file. The function isn’t that sophisticated yet (understatement!) – all it does is ask for the filename.
Why do I get e488 trailing characters error?
Why am I getting a “E488: Trailing characters” error on this custom command? I have a ~/.vimrc that contains just this: function! NewFile () let filename = input (“Filename:”) endfunction command NewFile :call NewFile () (of course my real .vimrc is more complex, but I’ve recreated this small test case with no plugins etc.)
Why do I get trailing characters in Vim?
Remove the trailing That is only needed for mappings, but not for commands. Thanks for contributing an answer to Vi and Vim Stack Exchange! Please be sure to answer the question. Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers.
How to tell if Vim replace with regex is throwing e488?
The way that I clued in was by looking through the command history (by pressing : and the up arrow) and seeing and see if you can find the problem there. I had the same problem.
Why do I get error when I enter filename in Vimscript?
The function isn’t that sophisticated yet (understatement!) – all it does is ask for the filename. When I use the command NewFile from the vi command line, it starts, but then once I enter the filename and hit Enter, I get the error:
Why do I get the error e488 trailing characters?
On opening a file and typing :F7 it gives the error E488:Trailing Characters What could have gone wrong? By using :map, you make the F7 mapping available to the Normal, Visual, Select, Operator-pending modes. By pressing :, you’re entering command-line mode, which is not covered. See :help map-modes for an overview.