ruby-on-rails - vim nerdtree 文件显示附加 *

标签 ruby-on-rails vim nerdtree

这个问题在这里已经有了答案:




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/

相关文章:

JavaScript/jQuery 事件未触发嵌套 <divs> 中的元素

ruby-on-rails - Rails 2.3 的 EOL(生命周期终止)是什么?

ruby-on-rails - 具有多商店支持的 ruby​​ on rails 电子商务解决方案

vim - 如何在没有 IDE 功能的情况下重构代码(在 Vim 或 TextMate 中)?

使用 command-T 搜索

javascript - rails 5 : use link_to target an mp3 (as a model object) as well as a separate div with a different attribute of the same object?

vim - 显示打开文件列表的 Tmux/Vim 插件

c++ - 找不到 vim omnicppcomplete 模式

vim - 在新选项卡中打开文件时自动关闭 NERDTree

vim - 当我切换 minibufexplorer 时,如何在 nerdtree 打开时停止调整窗口大小