Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/antonk52/dirvish-fs.vim

fs menu for vim-dirvish
https://github.com/antonk52/dirvish-fs.vim

dirvish neovim neovim-plugin vim vim-plugin

Last synced: 3 months ago
JSON representation

fs menu for vim-dirvish

Lists

README

        

# dirvish-fs.vim

dirvish-fs is a complimentary plugin to [vim-dirvish](https://github.com/justinmk/vim-dirvish). It adds nerdtree like shortcuts to add/move/copy/remove nodes in dirvish buffers.

## Installation

Install both using your favorite plugin manager. An example using [vim-plug](https://github.com/junegunn/vim-plug):

```viml
Plug 'justinmk/vim-dirvish'
Plug 'antonk52/dirvish-fs.vim'
```

## Mappings

### In dirvish buffer

- ma - add node, end with `/` to add directory
- mm - move node
- mc - copy node
- dd - remove node

### Custom mappings

To disable the default mappings add the following to your `.vimrc`

```viml
" disables default mappings
let g:dirvish_fs_default_mappings = 0

" sets custom mappings
function! DivrishMappings()
nmap dd DirvishFsRemove
nmap ma DirvishFsAdd
nmap mm DirvishFsMove
nmap mc DirvishFsCopy
endfunction

autocmd FileType dirvish call DivrishMappings()
```

## Why?

It was the only thing stopping me from jumping off bloated [NERDTree](https://github.com/preservim/nerdtree) plugin.

Pull requests are welcome