Hey all, I'm trying to figure out how to get these configurations done with evil. I can't see how to do that with the documentation here<http://gitorious.org/evil/pages/Home>. I'm trying to get these basic behaviours: - directional delete: d [up key] - line numbers - setting softtabstop: set sts=2 - remap: : to ; (I want to avoid pressing shift to invoke a vim command) - remap: % to [tab] (I want to avoid pressing shift when jumping between scopes) Thanks Tim
On 16 December 2011 19:07, Timothy Washington <[email protected]> wrote:
Hey all,
I'm trying to figure out how to get these configurations done with evil. I can't see how to do that with the documentation here. I'm trying to get these basic behaviours:
directional delete: d [up key] line numbers
this is not related to evil (require 'linum) (global-linum-mode t) to your .emacs Jim
setting softtabstop: set sts=2 remap: : to ; (I want to avoid pressing shift to invoke a vim command) remap: % to [tab] (I want to avoid pressing shift when jumping between scopes)
On Fri, Dec 16, 2011 at 02:07:47PM -0500, Timothy Washington wrote:
Hey all,
I'm trying to figure out how to get these configurations done with evil. I can't see how to do that with the documentation here<http://gitorious.org/evil/pages/Home>.
Yeah, the documentation is quite sparse, but writing a good one takes time ...
I'm trying to get these basic behaviours:
- directional delete: d [up key]
dk should work, see the discussion of issue #46 at [1]
- line numbers - setting softtabstop: set sts=2
Evil is not a full emulation of Vim in Emacs (and will never be). This means that especially (almost) everything that has to do with configuration will *not* be emulated by Evil. The reason is that the purpose of Evil is to combine the best of both world, Vim and Emacs. And this means Evil does not shadow (besides keybindings) or replace Emacs' own functions, configuration options, and so on.
- remap: : to ; (I want to avoid pressing shift to invoke a vim command) - remap: % to [tab] (I want to avoid pressing shift when jumping between scopes)
All evil bindings are ordinary Emacs keymaps, so there is no "remap" command. You should use Emacs function to change keybindings, e.g., (define-key evil-motion-state-map ";" 'evil-ex-read-command) or (define-key evil-motion-state-map (kbd "TAB") "%") should do what you want (untested, by I hope you got the idea. Have a look at "evil-maps.el" for all default keybindings) Frank [1] https://bitbucket.org/lyro/evil/issue/46/d-d-behaves-different-from-dk-dj
Nice. Thanks for all the tips. Especially the thinking behind evil. Tim On Sat, Dec 17, 2011 at 9:34 AM, Frank Fischer < [email protected]> wrote:
On Fri, Dec 16, 2011 at 02:07:47PM -0500, Timothy Washington wrote:
Hey all,
I'm trying to figure out how to get these configurations done with evil. I can't see how to do that with the documentation here<http://gitorious.org/evil/pages/Home>.
Yeah, the documentation is quite sparse, but writing a good one takes time ...
I'm trying to get these basic behaviours:
- directional delete: d [up key]
dk should work, see the discussion of issue #46 at [1]
- line numbers - setting softtabstop: set sts=2
Evil is not a full emulation of Vim in Emacs (and will never be). This means that especially (almost) everything that has to do with configuration will *not* be emulated by Evil. The reason is that the purpose of Evil is to combine the best of both world, Vim and Emacs. And this means Evil does not shadow (besides keybindings) or replace Emacs' own functions, configuration options, and so on.
- remap: : to ; (I want to avoid pressing shift to invoke a vim command) - remap: % to [tab] (I want to avoid pressing shift when jumping between scopes)
All evil bindings are ordinary Emacs keymaps, so there is no "remap" command. You should use Emacs function to change keybindings, e.g.,
(define-key evil-motion-state-map ";" 'evil-ex-read-command)
or
(define-key evil-motion-state-map (kbd "TAB") "%")
should do what you want (untested, by I hope you got the idea. Have a look at "evil-maps.el" for all default keybindings)
Frank
[1] https://bitbucket.org/lyro/evil/issue/46/d-d-behaves-different-from-dk-dj
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
participants (3)
-
Frank Fischer -
Jim Green -
Timothy Washington