问题
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