Alan Young wrote:
Yegappan Lakshmanan wrote:
If you need a sample code that uses the tree control, you can use
the attached file explorer plugin. Place this file in the ~/.vim/plugin
directory.

To open the file explorer, use the following command:

   :FileTreeOpen [dirname]


Where do I put the treectl.vim file? I put it in .vim/plugin and tried
an autoload directory under .vim (your zip has that directory in it) but
filetree.vim won't load (I added an echo in the block that checks for
treectrl#available and go the echo on startup).


Did you restart Vim after you put it in ~/.vim/plugin (for Unix) or ~/vimfiles/plugin (for Windows)? If you didn't, you should have.

The file containing the function treectl#available() should be named [directory]/autoload/treectl.vim where [directory] is ~/.vim or ~/vimfiles, as above.

Best regards,
Tony.

Reply via email to