• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

having trouble with vi editor

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
YZlat
Asked:
YZlat
  • 2
1 Solution
 
woolmilkporcCommented:
Hit <ESC> for command mode, <i> for insert mode, <r> for replace mode, <ESC>: to go to command line.
0
 
woolmilkporcCommented:
Sorry, <R> for replace mode.
0
 
YZlatAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now