49

linux - How can I Insert the result of a ".w" evaluation at the end of...

 5 years ago
source link: https://superuser.com/questions/1342746/how-can-i-insert-the-result-of-a-w-evaluation-at-the-end-of-a-line-in-vim/1343408#1343408
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
I'd like to be able to evaluate a line of Javascript (or other code) in Vim, and have the result appear in a comment at the end of the line.For example, if I have a file like:console.log(4 + 5)...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK