Linux.com

Home Linux Community Forums Software Command Line vi - anyway to jump line while in insert mode?

vi - anyway to jump line while in insert mode?

Link to this post 03 May 11

marc wrote:

Anyway... I *can* use the arrow keys while in insert mode... (both in vi and vim)
Many systems don't provide descendants of the original Vi anymore. I know the BSDs and ArchLinux provides it, but at least Ubuntu by default provides a a symlink to Vim, which goes into a Vi emulation mode when invoked by the name of vi. Follow all the symlinks from /usr/bin/vi, or check which package provides the file ;)

Link to this post 03 May 11

marc wrote:

What's the point on not going to command mode?

Anyway... I *can* use the arrow keys while in insert mode... (both in vi and vim)

In GNOME Terminal 2.32.0 i get A, B, C and D inserted on arrow keys. In VT/tty it moves and change to normal/command mode. What terminal are you using?

Using Ctrl-C instead of ESC thats makes it way better. (Ctrl-C + k + i)

Link to this post 04 May 11

jabirali wrote:

[b]marc wrote:[/b]
[quote]Anyway... I *can* use the arrow keys while in insert mode... (both in vi and vim)
Many systems don't provide descendants of the original Vi anymore. I know the BSDs and ArchLinux provides it, but at least Ubuntu by default provides a a symlink to Vim, which goes into a Vi emulation mode when invoked by the name of vi. Follow all the symlinks from /usr/bin/vi, or check which package provides the file ;)[/quote]

I do use Archlinux and FreeBSD... :)

Anyway, my CentOS installs come with /bin/vi which seem to be vim executable renamed :S Wierd, uh?

Regards

EDIT:


rpm -qf /bin/vi
vim-minimal-7.0.109-7.el5

and


yum info vim-minimal
Installed Packages
Name : vim-minimal
Arch : x86_64
Epoch : 2
Version : 7.0.109
Release : 7.el5
Size : 616 k
Repo : installed
Summary : A minimal version of the VIM editor.
License : freeware
Description: VIM (VIsual editor iMproved) is an updated and improved version of the
: vi editor. Vi was the first real screen-based editor for UNIX, and is
: still very popular. VIM improves on vi by adding new features:
: multiple windows, multi-level undo, block highlighting and more. The
: vim-minimal package includes a minimal version of VIM, which is
: installed into /bin/vi for use when only the root partition is
: present. NOTE: The online help is only available when the vim-common
: package is installed.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board