You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can unmap all of the maps above and set your own (mine are below). Add this to ftplugin/dirvish.vim:
" unmap all default mappingsletg:dirvish_dovish_map_keys=0" unmap dirvish defaultunmap<buffer>p" Your preferred mappingsnmap<silent><buffer> i <Plug>(dovish_create_file)nmap<silent><buffer> I <Plug>(dovish_create_directory)nmap<silent><buffer> dd <Plug>(dovish_delete)nmap<silent><buffer> r <Plug>(dovish_rename)nmap<silent><buffer> yy <Plug>(dovish_yank)xmap<silent><buffer> yy <Plug>(dovish_yank)nmap<silent><buffer> p <Plug>(dovish_copy)nmap<silent><buffer> P <Plug>(dovish_move)
Customize Commands
Most file operations can be customized. Below are the defaults:
" Used for <Plug>(dovish_yank)function!g:DovishCopyFile(target, destination) abortreturn'cp ' . a:target . '' . a:destinationendfunction" Used for <Plug>(dovish_yank)function!g:DovishCopyDirectory(target, destination) abortreturn'cp -r' . a:target . '' . a:destinationendfunction" Used for <Plug>(dovish_move)function!g:DovishMove(target, destination) abortreturn'mv ' . a:target . '' . a:destinationendfunction" Used for <Plug>(dovish_delete)function!g:DovishDelete(target) abortreturn'trash ' . a:targetendfunction" Used for <Plug>(dovish_rename)function!g:DovishRename(target, destination) abortreturn'mv ' . a:target . '' . a:destinationendfunction