Skip to content

Instantly share code, notes, and snippets.

@cofi
Created September 10, 2014 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cofi/2070a873ad6ee96805cf to your computer and use it in GitHub Desktop.
Save cofi/2070a873ad6ee96805cf to your computer and use it in GitHub Desktop.
(defun evil-cd (dir)
(interactive "D")
(if (file-exists-p dir)
(message dir)
(message "error")))
(evil-ex-define-cmd "cd" 'evil-cd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment