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
- Host: GitHub
- URL: https://github.com/antonk52/dirvish-fs.vim
- Owner: antonk52
- License: mit
- Created: 2020-09-11T01:03:13.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-18T14:12:07.000Z (over 1 year ago)
- Last Synced: 2024-01-16T12:43:31.582Z (5 months ago)
- Topics: dirvish, neovim, neovim-plugin, vim, vim-plugin
- Language: Vim Script
- Homepage:
- Size: 9.77 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - antonk52/dirvish-fs.vim - fs menu for vim-dirvish (Vim Script)
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
endfunctionautocmd 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