~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/vim/.vim/after/plugin/dirvish.vim -rw-r--r-- 647 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" vim-dirvish configuration
" Author: Greg Anders <greg@gpanders.com>
" Date: 2018-12-06

if !get(g:, 'loaded_dirvish')
    unlet g:loaded_netrwPlugin
    runtime plugin/netrwPlugin.vim
    finish
endif

command! -bar -nargs=? -complete=dir Explore call dirvish#open(<q-args>)
command! -nargs=? -complete=dir Sexplore belowright split | silent Dirvish <args>
command! -nargs=? -complete=dir Hexplore belowright split | silent Dirvish <args>
command! -nargs=? -complete=dir Vexplore leftabove vsplit | silent Dirvish <args>

augroup plugin.dirvish
    autocmd!
    autocmd FileType dirvish nmap <silent> <buffer> q <Plug>(dirvish_quit)
augroup END