这个问题在这里已经有了答案:
8年前关闭。
Possible Duplicate:
gVim displays every file with an asterisk on the right (and bold)?
我正在为我的 rails 项目使用带有 nerdtree 插件的 vim,并且一些文件显示为
*
附加到文件名。它们的颜色也与其他文件不同。edit.html.erb*
index.html.erb
show.html.erb*
*
有什么用是什么意思?
最佳答案
关键是可执行位。例如,如果您这样做:
$touch no_exec_file exec_file
$chmod -v u+x exec_file
$ls -lF
total 0
-rwxr--r-- 1 reoo reoo 0 2012-09-19 19:14 exec_file*
-rw-r--r-- 1 reoo reoo 0 2012-09-19 19:14 no_exec_file
你可以在exec_file中看到'*',现在,如果你打开VIM,你可以在exec_file中再次看到'*'符号。
因此,NERDTree 插件为那些可以由用户执行的文件显示“*”符号。
关于ruby-on-rails - vim nerdtree 文件显示附加 *,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12504405/