We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

Adding answer to own question since I've been using evil w/o undo-tree for some time now. This works surprisingly well to undo/redo which wraps emacs undo without anything heavy like undo-tree or redo+. (global-undo-tree-mode -1) (defun simple-redo () (interactive) ;; Break undo chain, avoid having to press Ctrl-G. (when (string= last-command '...


0

Here is my solution: Press xP to paste over the region without changing the kill ring. (define-key evil-normal-state-map "x" 'delete-forward-char) ; delete to the black hole (define-key evil-normal-state-map "X" 'delete-backward-char) Explanation in details: https://emacs.stackexchange.com/a/53536/18298


0

Here is what I use: (define-key evil-normal-state-map "x" 'delete-forward-char) (define-key evil-normal-state-map "X" 'delete-backward-char) Explanation: delete-forward/backward-char is the function to delete something without yanking it to any register. Vx: this would select a line (V) then delete it (x) without yanking it, so it might be what you want ...


6

Spacemacs uses evil-mode which is a VI emulation layer. Evil-mode adds VI modal editing to spacemacs. In a nutshell modal editing has different modes where keybindings do different things. This is partly so that keybindings can remain short and easy to remember. In essence, the answer to your question is that you enter the space character by switching to ...


0

More explanations how to remove Evil are in .emacs.d/modules/editor/evil/README.org and to quote it: You must do two things to remove Evil: Remove =:editor evil= from =~/.doom.d/init.el=, Run ~doom refresh~ to clean up lingering dependencies and refresh your autoloads files. [OPTIONAL] You may want to assign new values to ~doom-leader-alt-...


Top 50 recent answers are included