我想将我的文件路径截断为 ex: a/a/j/c/popularCategories.js
。
问问题
2089 次
2 回答
3
有两种选择。
试试这个选项:
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 的默认状态行一样被截断,那么您可以创建一个移动截断点的主题。试试我的理智主题,看看它是否更适合你。
于 2012-10-31T22:23:22.753 回答
0
目前没有办法做到这一点。我以某种方式错过了这个选项。更改电力线截断路径的方式存在一个问题:问题 215,而不是像我以前认为的那样添加截断。
于 2012-10-31T19:16:00.183 回答