Solved

Vi automaticaly changes to Command mode ( arrows pressed )

Posted on 2002-07-10
6
311 Views
Last Modified: 2010-04-21
Hi,

  VI question.

  I think it's easy : I want to remain in Edit Mode and move cursor when arrows are pressed. ( I'am sure it's a 'term' declaration). Now VI passes to Command Mode

Thanks

0
Comment
Question by:Vikur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 7143357
The whole concept behind VI is to seperate command mode and edit mode, with movement within the edit buffer being considered commands, and not edit.

If you want an editor that's modeless, use emacs or pico.

But be warned, the one and only actual study on the subject that I'm aware of showed that expert VI users are much much more efficient than experts with any other editor.  And it's actually not as difficult to learn as you might think.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7143727
use vim instead of vi http://www.vim.org/
(traditional vi users will not feel the difference, whileother's can use the advantages;-)
0
 

Author Comment

by:Vikur
ID: 7143766
1.May be I can do it somehow tricky (I mean that it'll be as it's on vim imlemented)

2.I have no time and permissions to isntall and support vim

Thanks
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 7143807
1. AFAIK no for UNIXs which use standard AT&T vi (see chris' comment)
2. vim installation is very simple, support: use
     :help
  much simpler than vi documentations ;-)

I'm vi user since the beggining of dawn, but vim is nice, sometimes, somehow ... (I just miss the toggling 'u' command)
0
 
LVL 2

Expert Comment

by:frederico
ID: 7144735
comment for Ahoffmann.

If you do a "set cp" it will allow the toggling "u".
-----------

As for Vikur, the solution is really install Vim, and if you are worried about supporting it, just set the vi compatibility flags by default and then let the users do whatever they like with it (at their own risk they can change the defaults, but they are normally allowed to do that with vi anyway so that should not be a problem)
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 7148555
THANKS, for the tip, frederico
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question