?
Solved

Vi automaticaly changes to Command mode ( arrows pressed )

Posted on 2002-07-10
6
Medium Priority
?
312 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 300 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month9 days, 19 hours left to enroll

762 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