<br><div class="gmail_quote">On Sat, Mar 12, 2011 at 4:19 AM, Vegard Øye <span dir="ltr"><<a href="mailto:vegard_oye@hotmail.com">vegard_oye@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 2011-03-11 23:35 +0100, Justin Zhu wrote:<br>
<br>
> I like to have ESC behave like C-g in normal mode in the minibuffer<br>
<br>
</div>The most straightforward way is to disable Viper in the minibuffer:<br>
<br>
(remove-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel)<br>
(defadvice viper-set-minibuffer-overlay (around vimpulse activate) nil)<br>
(defadvice viper-has-face-support-p (around vimpulse activate) nil)<br>
(define-key minibuffer-local-map (kbd "ESC") 'abort-recursive-edit)<br></blockquote><div><br></div><div>I like the modal editing of the minibuffer, just that it would be nice for pressing </div><div>ESC multiple times to exit the minibuffer.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
That will remove all modal functionality when using Ex.<br>
<div class="im"><br>
> Another issue is vimpulse messing with comment indenting. I have RET<br>
> bound to comment-indent-new-line so that in a comment, pressing<br>
> enter inserts a comment prefix. However, with vimpulse on, it<br>
> inserts an extra tab to the new line.<br>
<br>
</div>This should work without binding RET yourself -- Viper binds RET to<br>
`viper-autoindent', which in Vimpulse calls `comment-indent-new-line'.<br>
I am unable to reproduce the behavior in c-mode or java-mode. What<br>
major mode are you using? Are you using the Git version of Vimpulse?<br>
<div class="im"><br></div></blockquote><div>I'm using scala-mode with latest git version.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
> Any help is greatly appreciated!<br>
<br>
</div>Please note that Vimpulse is being discontinued in favor of Evil,[1]<br>
which will do everything Vimpulse does and much more. I will still<br>
provide basic support for Vimpulse to ease the transition, but once<br>
Evil hits its first release, Vimpulse is officially obsolete.<br>
<br>
[1] <a href="http://gitorious.org/evil" target="_blank">http://gitorious.org/evil</a><br>
<br>
--<br>
<font color="#888888">Vegard<br>
</font></blockquote></div><br><div>Cool! I'm looking forward to the first release.</div>