diff options
Diffstat (limited to 'extras/vim-like.el')
-rw-r--r-- | extras/vim-like.el | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/extras/vim-like.el b/extras/vim-like.el new file mode 100644 index 0000000..9506dc1 --- /dev/null +++ b/extras/vim-like.el @@ -0,0 +1,32 @@ +;;; Emacs Bedrock +;;; +;;; Extra config: Vim emulation + +;;; Usage: Append or require this file from init.el for bindings in Emacs. + +;;; Contents: +;;; +;;; - Core Packages + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Core Packages +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; Evil: vi emulation +(use-package evil + :ensure t + + :init + (setq evil-respect-visual-line-mode t) + (setq evil-undo-system 'undo-redo) + + ;; Enable this if you want C-u to scroll up, more like pure Vim + ;(setq evil-want-C-u-scroll t) + + :config + (evil-mode) + + ;; Configuring initial major mode for some modes + (evil-set-initial-state 'vterm-mode 'emacs)) |