mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-12 01:27:53 +08:00
119 lines
4.1 KiB
Markdown
119 lines
4.1 KiB
Markdown
## About
|
|
|
|
[](https://gitter.im/Shougo/defx.nvim?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
|
|
Defx is a dark powered plugin for Neovim/Vim to browse files.
|
|
It replaces the deprecated vimfiler plugin.
|
|
|
|
|
|
## Concept
|
|
|
|
* Doesn't depend on denite.nvim
|
|
|
|
* Vim8/neovim compatible(nvim-yarp is needed for Vim8)
|
|
|
|
* Implemented by Python3
|
|
|
|
* No double filer feature
|
|
|
|
* Column feature
|
|
|
|
* Source feature like denite.nvim
|
|
|
|
* Options
|
|
|
|
* Highlight is defined by column
|
|
|
|
* Few commands (:Defx command only?)
|
|
|
|
* Extended rename
|
|
|
|
* Mark
|
|
|
|
* Windows supporters are needed
|
|
|
|
* Maximum features dislike other file managers
|
|
|
|
|
|
## Installation
|
|
|
|
**Note:** defx requires Neovim 0.4.0+ or Vim8.2+ with Python3.6.1+. See
|
|
[requirements](#requirements) if you aren't sure whether you have this.
|
|
|
|
For vim-plug
|
|
|
|
```viml
|
|
if has('nvim')
|
|
Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' }
|
|
else
|
|
Plug 'Shougo/defx.nvim'
|
|
Plug 'roxma/nvim-yarp'
|
|
Plug 'roxma/vim-hug-neovim-rpc'
|
|
endif
|
|
```
|
|
|
|
For dein.vim
|
|
|
|
```viml
|
|
call dein#add('Shougo/defx.nvim')
|
|
if !has('nvim')
|
|
call dein#add('roxma/nvim-yarp')
|
|
call dein#add('roxma/vim-hug-neovim-rpc')
|
|
endif
|
|
```
|
|
|
|
For manual installation(not recommended)
|
|
|
|
1. Extract the files and put them in your Neovim or .vim directory
|
|
(usually `$XDG_CONFIG_HOME/nvim/`).
|
|
|
|
|
|
## Requirements
|
|
|
|
defx requires Python3.6.1+ and Neovim(0.4.0+) or Vim8.2+ with if\_python3. If
|
|
`:echo has("python3")` returns `1`, then you have python 3 support; otherwise,
|
|
see below.
|
|
|
|
Note: The latest Neovim is recommended, because it is faster.
|
|
|
|
You can enable Python3 interface with pip:
|
|
|
|
pip3 install --user pynvim
|
|
|
|
Please install nvim-yarp plugin for Vim8.
|
|
https://github.com/roxma/nvim-yarp
|
|
|
|
Please install vim-hug-neovim-rpc plugin for Vim8.
|
|
https://github.com/roxma/vim-hug-neovim-rpc
|
|
|
|
|
|
## Note: Python3 must be enabled before updating remote plugins
|
|
If Defx was installed prior to Python support being added to Neovim,
|
|
`:UpdateRemotePlugins` should be executed manually.
|
|
|
|
|
|
## Configuration Examples
|
|
|
|
Please see `:help defx-examples`.
|
|
|
|
|
|
## Screenshots
|
|
|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|