Solved

having trouble with vi editor

Posted on 2013-01-04
3
312 Views
Last Modified: 2013-01-04
I am using vi editor to edit file on the UNIX server. In vi editor x deletes a character and dd deletes a whole line.

Sometimes both x and dd work for me and sometimes when I hit x it just types in 'x' character. How do i switch back and forth between being able to type and using UNIX shortcuts?
0
Comment
Question by:YZlat
  • 2
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 125 total points
ID: 38745057
Hit <ESC> for command mode, <i> for insert mode, <r> for replace mode, <ESC>: to go to command line.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 38745065
Sorry, <R> for replace mode.
0
 
LVL 35

Author Closing Comment

by:YZlat
ID: 38745074
Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
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…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

679 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