gpt4 book ai didi

vim - 如何截断 vim-powerline 状态行中的长文件路径?

转载 作者:行者123 更新时间:2023-12-02 10:46:36 25 4
gpt4 key购买 nike

我想将我的文件路径截断为:a/a/j/c/popularCategories.js

my powerline status

最佳答案

有两个选项。

尝试此选项:

    let g:Powerline_stl_path_style = 'short'

来自电力线文档:

short      Display a short path. The home directory is substituted with
"~", the first directory is displayed with its full name, and
subsequent directories are shortened to their first letter.
I.e. "/home/user/foo/bar/baz.vim" becomes "~/f/b/baz.vim" and
"long/relative/path/foo/bar/baz.vim becomes
"long/r/p/f/b/baz.vim".

或者,如果您希望像 Vim 的默认状态行一样截断路径,那么您可以创建一个主题 moves the truncation point 。试试我的sanity theme看看它是否更适合您。

关于vim - 如何截断 vim-powerline 状态行中的长文件路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13165941/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com