I'm a vim user moving to emacs evil.
I just added this line to my .init.el
file and it broke my dot functionality.
(define-key evil-insert-state-map (kbd "TAB") 'evil-force-normal-state)
Why? I'm not even sure what to search for to start debugging this.
Here's my whole init.el
file:
(require 'package)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
(setq package-enable-at-startup nil)
(package-initialize)
(global-linum-mode 1)
(require 'evil)
(evil-mode t)
;;;; Keymappings
(with-eval-after-load 'evil-maps
(define-key evil-motion-state-map (kbd ":") 'evil-repeat-find-char)
(define-key evil-motion-state-map (kbd ";") 'evil-ex))
(define-key evil-insert-state-map (kbd "TAB") 'evil-force-normal-state))
If I don't comment out that line, the .
in normal mode just deletes the current line as if I'm doing a dd
. I tried adding stuff to the end of a line then repeating it on a few lines with .
. All I got was fewer lines!