Ctrl+U in emacs when using evil key bindings

justingordon picture justingordon · Jan 13, 2013 · Viewed 12.2k times · Source

I'm using the wonderful evil package for vim bindings in emacs.

The one key that is not right is Ctrl+U. It is still the emacs prefix, rather than "up".

Does anybody have a solution for that in some lisp code for my .emacs?

Thanks.

Answer

bling picture bling · Sep 17, 2013

there is a variable that you can add to your .emacs

(setq evil-want-C-u-scroll t)

it needs to appear before the call to (require 'evil).