如何让选项卡只显示文件名而不是 vim 中的完整路径 [英] how to let tab display only file name rather than the full path in vim

查看:20
本文介绍了如何让选项卡只显示文件名而不是 vim 中的完整路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果文件的完整路径很长,您将无法分辨给定选项卡中的哪个文件.所以我想知道有没有办法让选项卡只显示文件名而不是完整路径的文件,在某些情况下可能会很方便.需要你的帮助,提前致谢.

If the full path of a file is very long, you can't tell which file is in a given tab. so I'm wondering is there is a way let the tab only disply the file name rather than the full path of the file, might be convenient in some case. need you help, thanks in advance.

推荐答案

尝试

:set guitablabel=%t

有关可能选项的格式,请参阅

For format of possible options see

:help '状态线'

:help 'statusline'

这篇关于如何让选项卡只显示文件名而不是 vim 中的完整路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆