{"id":18719975,"url":"https://github.com/mhinz/vim-tree","last_synced_at":"2025-10-26T21:39:16.169Z","repository":{"id":42192590,"uuid":"170770777","full_name":"mhinz/vim-tree","owner":"mhinz","description":"🌲 Use tree(1) for quick navigation.","archived":false,"fork":false,"pushed_at":"2022-08-09T12:42:44.000Z","size":55,"stargazers_count":58,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T08:47:40.363Z","etag":null,"topics":["file-browser","file-explorer","navigation","neovim","plugin","tree","vim"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhinz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-14T23:10:23.000Z","updated_at":"2024-10-24T11:29:47.000Z","dependencies_parsed_at":"2022-08-12T09:00:59.350Z","dependency_job_id":null,"html_url":"https://github.com/mhinz/vim-tree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhinz%2Fvim-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhinz","download_url":"https://codeload.github.com/mhinz/vim-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578874,"owners_count":21127713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file-browser","file-explorer","navigation","neovim","plugin","tree","vim"],"created_at":"2024-11-07T13:28:53.451Z","updated_at":"2025-10-26T21:39:11.114Z","avatar_url":"https://github.com/mhinz.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-tree\n\n**vim-tree** integrates good old [tree(1)](http://mama.indstate.edu/users/ice/tree) into\nVim and Nvim for all common operating systems.\n\nThe plugin provides a single command, `:Tree`, and has no options. It is perfect\nfor quickly navigating and exploring complex directory hierarchies.\n\n![vim-tree in action](./demo.svg)\n\n## Installation\n\nUse your favorite plugin manager. E.g. [vim-plug](https://github.com/junegunn/vim-plug):\n\n    Plug 'mhinz/vim-tree'\n\nThen restart Vim and `:PlugInstall`.\n\n## Dependencies\n\n[tree](http://mama.indstate.edu/users/ice/tree) needs to be installed.\n\n#### Ubuntu/Debian\n\n    $ sudo apt-get install tree\n\n#### macOS\n\n    $ brew install tree\n\n#### Windows\n\n1. Download the [win32 tree binary zip archive](http://downloads.sourceforge.net/gnuwin32/tree-1.5.2.2-bin.zip) and unzip it.\n1. Move `tree.exe` from the `bin` directory to the directory containing your\n   `vim.exe` or `nvim.exe`. E.g. `C:\\Program Files (x86)\\Vim\\vim81\\`.\n\n## Usage\n\nThere are no options and only one command: `:Tree`.\n\nThat command defaults to `tree -n -F --dirsfirst --noreport`. It takes optional\narguments that will simply be added to the default, so `:Tree -a` will run `tree\n-n -F --dirsfirst --noreport -a`.\n\nUse \u003ckbd\u003e?\u003c/kbd\u003e in the tree buffer to get a list of all mappings.\n\nA few tips:\n\n- For huge directories you might want to set a limit, e.g. `:Tree -L 3`.\n- If many files have spaces in their names, `:Tree -Q` might provide more\n  readable output.\n\n---\n\nTo keep a navigator-like window open:\n\n```vim\n:leftabove 40vnew | Tree\n```\n\nThen use `p` to open the current entry in the previous window.\n\n---\n\nTo fold on directories:\n\n```vim\nautocmd FileType tree setlocal foldmethod=expr\n```\n\n## Customization\n\n- The tree buffer sets the `tree` filetype.\n- `tree#GetPath()` returns the path of the current entry.\n\nStupid example:\n\n```vim\nautocmd FileType tree\n      \\ autocmd CursorMoved \u003cbuffer\u003e execute 'pedit' tree#GetPath()\n```\n\nNow, every time you move the cursor to a file, it will be shown in the preview\nwindow.\n\n## Author and Feedback\n\nIf you like this plugin, star it! It's a great way of getting feedback. The same\ngoes for reporting issues or feature requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fvim-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhinz%2Fvim-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhinz%2Fvim-tree/lists"}