Is there a “vim runtime log”?

前端 未结 6 834
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 10:42

Sometimes I try a customization/command in my vimrc. Everything seens to be correct, but it just doesn\'t work.

It\'s difficult to know what\'s happening when vim st

6条回答
  •  自闭症患者
    2020-12-12 11:20

    :messages shows all warnings, errors, and informational messages that appeared (possibly briefly) in the vim statusline.

    :echo errmsg prints the most recent error message.

    g< is another feature few people know about. From :help g<:

    The g< command can be used to see the last page of previous command output. This is especially useful if you accidentally typed at the hit-enter prompt.

    For example try :!ls then cancel the prompt, then hit g<.

提交回复
热议问题