How to echo custom startup message in vim

感情迁移 提交于 2019-12-08 16:41:54

问题


Is there a way to echo a custom message in vim on startup? I tried using echo "Message" in my vimrc, but nothing seems to come up.


回答1:


You probably want to set up an autocmd to ensure everything is finished loading before your message appears.

autocmd VimEnter * echo "Message"



回答2:


Heres a command line version that might be helpful in tandem with some type of launcher:

vim -c 'e .|redraw|echom "Welcome!"'


来源:https://stackoverflow.com/questions/10803527/how-to-echo-custom-startup-message-in-vim

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!