禁用vim的启动消息

禁用vim的启动消息

本文介绍了禁用vim的启动消息(vimdiff,vim -o -O个)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当从命令行使用多个窗口打开多个文件时,vim希望说明每个文件的文件名,行数和字符数.然后,提示用户按Enter键继续浏览好东西.

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. Then the user is prompted to press enter to continue on to the good stuff.

是否有设置或开关以禁用此功能?我正在用它与TortoiseSVN进行比较,而当我只想快速浏览所做的更改时,该消息正在浪费我的生产力.

Is there an setting or switch to disable this? I'm using this for diffing with TortoiseSVN and the message is killing my productivity when all I want is a quick glance at the changes.

推荐答案

您必须使用'shortmess'vim选项.

You have to play with 'shortmess' vim option.

:help shortmess

在您的.vimrc中设置

Either set it in your .vimrc

set shortmess=at

或在vim运行期间

vim --cmd 'set shortmess=at'

这篇关于禁用vim的启动消息(vimdiff,vim -o -O个)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 07:09