<div dir="ltr"><div><div> Hi Paul<br><br>~/.vimrc does the trick!<br><br></div>Now It behaves like in Linux and "Esc" then "a" starts the INSERT mode (at vi's bottom appears the "-- INSERT --") and I can move with arrows keys and use Del/Canc as I'm used to.<br><br></div>Thanks!<br> </div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 11:02 PM, Paul B. Henson <span dir="ltr"><<a href="mailto:henson@acm.org" target="_blank">henson@acm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> From: Davide Poletto<br>
> Sent: Thursday, April 16, 2015 2:52 AM<br>
<span class="">><br>
> every OmniOS versions I tested so far: I never been able to use vi editor in<br>
> OmniOS as I do (entering editing mode, writing characters, deleting ones, etc.) in<br>
> Linux because it seems it doesn't recognize any expected key combinations.<br>
<br>
</span>One thing to note is that under OmniOS, vim defaults to compatible mode, as opposed to linux, where it generally does not. When running in compatible mode, a lot of the nifty vim features and abilities you are used to don't work 8-/. To disable compatible mode, all you need to do is create a ~/.vimrc (even if empty) or turn it off explicitly in the global configuration file (see ":help compatible" for details).<br>
<span class=""><br>
> those commands like ESC+a to insert or ESC+Shift+: to go to vi's prompt for<br>
> saving, quitting, etc.)?<br>
<br>
</span>I don't believe I've ever seen "ESC+a" listed as a specific vi command. ESC, if you are in edit mode, returns you to command mode. If you are in command mode, it is a noop AFAIK. 'a' is actually "append", not "insert", which is 'i'. ':' if you are in command mode pops up the prompt, you only need to hit ESC first if you are in edit mode and need to switch to command mode, although if you are already in command mode it doesn't hurt to hit again.<br>
<br>
<br>
</blockquote></div><br></div>