dotfiles/nvim/.config/nvim/after/ftplugin/dirvish.vim

17 lines
538 B
VimL

setlocal bufhidden=hide
setlocal nospell
nnoremap <buffer> <silent> yy "+yy<C-^>
" Unmap all default mappings
let g:dirvish_dovish_map_keys = 0
nmap <silent> <buffer> i <Plug>(dovish_create_file)
nmap <silent> <buffer> I <Plug>(dovish_create_directory)
nmap <silent> <buffer> D <Plug>(dovish_delete)
nmap <silent> <buffer> r <Plug>(dovish_rename)
nmap <silent> <buffer> cc <Plug>(dovish_yank)
xmap <silent> <buffer> cc <Plug>(dovish_yank)
nmap <silent> <buffer> pp <Plug>(dovish_copy)
nmap <silent> <buffer> P <Plug>(dovish_move)