<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 5 oct. 2011, at 13:19, Frank Fischer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">The problem is that the whole change you make during insert-state is<br>recorded as a single undo.</span></blockquote><div><br></div><div>Is this usual vim behavior?</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">In order to inhibit C-w you could use something like<br><br>(define-key evil-insert-state-map (kbd "C-w") 'undefined)<br></span></blockquote></div><br><div>Thanks, it put me on the right direction. I have added</div><div>(define-key evil-insert-state-map (kbd "C-w") 'evil-window-map)</div><div>to my .emacs and it does what I want.</div><div><br></div><div>I just tested with vim and there as well C-w is backward delete word. I had never noticed.</div><div><br></div><div>Alan</div></body></html>