Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.19 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.19 KB

dirvish-fs.vim

dirvish-fs is a complimentary plugin to 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:

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

" disables default mappings
let g:dirvish_fs_default_mappings = 0

" sets custom mappings
function! DivrishMappings()
    nmap <buffer> <silent>dd <Plug>DirvishFsRemove
    nmap <buffer> <silent>ma <Plug>DirvishFsAdd
    nmap <buffer> <silent>mm <Plug>DirvishFsMove
    nmap <buffer> <silent>mc <Plug>DirvishFsCopy
endfunction

autocmd FileType dirvish call DivrishMappings()

Why?

It was the only thing stopping me from jumping off bloated NERDTree plugin.

Pull requests are welcome