Disabling vim's startup message (vimdiff, vim -o -O ones)

前端 未结 2 1264
时光说笑
时光说笑 2021-02-15 13:53

When using opening multiple files with split windows from the command line, vim likes to state what the file names are, the line count, and the character count, for each file. T

相关标签:
2条回答
  • 2021-02-15 14:38

    Mykola Golubyev's answer ist good, but you probably want to use += instead of = in order to keep the flags that are already present.

    set shortmess+=at
    

    Otherwise it might have unwanted side effects like those mentioned in the above comments.

    0 讨论(0)
  • 2021-02-15 14:54

    You have to play with 'shortmess' vim option.

    :help shortmess
    

    Either set it in your .vimrc

    set shortmess=at
    

    or during the vim run

    vim --cmd 'set shortmess=at'
    
    0 讨论(0)
提交回复
热议问题