Is there a feature in Vimscript or a convention that allows you to simply print text in an editor? The echo function provides only the print function on the command line and does not actually print in the editor.
echo
When you say “print to the editor”, I assume that you mean “print to current buffer”. If this is correct, take a look at :help append() .
:help append()
The object that I sometimes use is :redir @" (or :redir @a for register a ), which redirects the output of commands to the buffer so that you can p an asteroid. To stop redirecting the output, say :redir end . See :help :redir .
:redir @"
:redir @a
a
p
:redir end
:help :redir
Source: https://habr.com/ru/post/1401052/More articles:upload progress to FTPClient - javaPlotting a line above / below existing lines created using a storyline - matlabPHP Image / Fileupload: crossbrowser, multiple files, drag and drop? - phpRun Bash Script automatically at login - unixSeam 2.2 app on JBoss 7.1? - javaPDO Don't Avoid String Quotes - sqlReceive udp broadcast packages ios - iosNo margin printing - printingEvent notification from dll to main application - callbackRails 3.2 Preventing Object Saving with Errors - ruby | fooobar.comAll Articles