This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/!vim/vinegar/keybindings.el
2015-07-23 20:27:42 -04:00

27 lines
1 KiB
EmacsLisp

(require 'dired-x)
(define-key evil-normal-state-map (kbd "-") 'dired-jump)
(add-hook 'dired-mode-hook 'vinegar/dired-setup)
(eval-after-load "dired-mode"
(evilify dired-mode dired-mode-map
"j" 'vinegar/move-down
"k" 'vinegar/move-up
"-" 'vinegar/up-directory
"0" 'dired-back-to-start-of-files
"=" 'vinegar/dired-diff
(kbd "C-j") 'dired-next-subdir
(kbd "C-k") 'dired-prev-subdir
"I" 'vinegar/dotfiles-toggle
(kbd "~") '(lambda ()(interactive) (find-alternate-file "~/"))
(kbd "RET") 'dired-find-alternate-file
"f" 'helm-find-files
(kbd "C-f") 'find-name-dired
"H" 'diredp-dired-recent-dirs
"T" 'dired-tree-down
"K" 'dired-do-kill-lines
"r" 'dired-do-redisplay
(kbd "C-r") 'revert-buffer
"gg" 'vinegar/back-to-top
"G" 'vinegar/jump-to-bottom
))