(感谢水木的 runsnake (狂奔之蛇))
在vimrc中加入下面一行:
auto BufEnter * let &titlestring = hostname() . ":" . expand("%:p") . " ( " . &fenc . " )"
就会显示如:Zhang:/home/john/.vimrc (utf-8)
后记:
虽然能够显示了,但是对一些文件编码的判断似乎有问题,应该是vim底层对文件编码判断的问题了。
Written on 2006/09/22 by Big Br0ther
定制vim的标题栏,使其显示文件编码
Labels:
vim,
贴士
0 Comments
Subscribe to:
Post Comments (RSS)
0 Responses to "定制vim的标题栏,使其显示文件编码"
Post a Comment