Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim nerdtree files show up with * appended [duplicate]

Possible Duplicate:
gVim displays every file with an asterisk on the right (and bold)?

I'm using vim with nerdtree plugin for my rails projects and some of the files show up with a * appended to the filename. They are also a different color from the other files.

edit.html.erb*
index.html.erb
show.html.erb*

What does the * mean?

like image 241
Brand Avatar asked Sep 19 '12 23:09

Brand


People also ask

How do you refresh NERDTree?

Keymap to Refresh NERDTree Once set, pressing Leader + r would refresh NERDTree .

How do I turn off NERDTree Vim?

Save the changes, open Vim, and then toggle NERDTree with Ctrl + n .

What is NERDTree in Vim?

The NERDTree is a file system explorer for the Vim editor. Using this plugin, users can visually browse complex directory hierarchies, quickly open files for reading or editing, and perform basic file system operations.

How do I delete files on NERDTree?

Press m to bring up the NERDTree Filesystem Menu. This menu allows you to create, rename, and delete files and directories.


2 Answers

The key is the executable bit. For example, if you do this:

$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

You can see the '*' in the exec_file, now, if you open VIM, you can see the '*' symbol again in the exec_file.

So, the NERDTree plugin shows the '*' symbol for those files that can be execute by the user.

like image 153
Raúl Omaña Avatar answered Sep 28 '22 17:09

Raúl Omaña


It means that your files are executable, meaning you gave them the permission to be executable. Or they are files like .exe for example.

like image 23
8vius Avatar answered Sep 28 '22 17:09

8vius