[OmniOS-discuss] OmniOS 151014: questions about locale settings and vi editing command's issues.

Davide Poletto davide.poletto at gmail.com
Thu Apr 16 21:08:04 UTC 2015


 Hi Paul

~/.vimrc does the trick!

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.

Thanks!

On Thu, Apr 16, 2015 at 11:02 PM, Paul B. Henson <henson at acm.org> wrote:

> > From: Davide Poletto
> > Sent: Thursday, April 16, 2015 2:52 AM
> >
> > every OmniOS versions I tested so far: I never been able to use vi
> editor in
> > OmniOS as I do (entering editing mode, writing characters, deleting
> ones, etc.) in
> > Linux because it seems it doesn't recognize any expected key
> combinations.
>
> 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).
>
> > those commands like ESC+a to insert or ESC+Shift+: to go to vi's prompt
> for
> > saving, quitting, etc.)?
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20150416/4f882cce/attachment.html>


More information about the OmniOS-discuss mailing list