typing in file created in terminal by vi command

Asked by nimish sakalkale

Whenever i create a java file by using vi command and type in that at that time when i press arrow keys alphabets(A,B,C,D) appears what should i do. and how to install jdk6 in ubuntu??

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu vim Edit question
Assignee:
No assignee Edit question
Solved by:
anatoly techtonik
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you have numlock or scroll lock enabled, this may cause this.

FWIW, nano is a bit friendlier

Revision history for this message
nimish sakalkale (nimishsakalkale) said :
#2

Whenever i create a java file by using vi command and type in that at that
time when i press arrow keys alphabets(A,B,C,D) appears what should i do.
Num lock on/off status doesnt affect that. i am using acer 5738g laptop
model

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

you are in input mode you must press ESC and then move with arrows then press ESC i to return in input mode

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

you can use more simple editor such as nano or gedit (not for terminal)
or keep open some vi manual or quick command references http://www.netads.com/~meo/useful/vi/vi.rm.html

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

+1 for nano, so so simple.

Revision history for this message
Best anatoly techtonik (techtonik) said :
#6

Developer's say this is expected behavior from `vi`. You probably want to use `vim` if you want the user-friendly version of this editor.

Revision history for this message
nimish sakalkale (nimishsakalkale) said :
#7

Thanks anatoly techtonik, that solved my question.

Revision history for this message
nimish sakalkale (nimishsakalkale) said :
#8

LinkedIn
------------

I'd like to add you to my professional network on LinkedIn.

- nimish

nimish sakalkale
Student at walchand college of engineering
Mumbai Area, India

Confirm that you know nimish sakalkale:
https://www.linkedin.com/e/-7m1ycj-h06d11ct-16/isd/6415737701/-OV8sUq7/?hs=false&tok=2rQ6dduNITV581

--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/-7m1ycj-h06d11ct-16/upAiTFz_2SIXlW1XlF2t3VzsqJdNYzSONAnMgGdq_lvul_1ulj0fo5/goo/question119208%40answers%2Elaunchpad%2Enet/20061/I2226501375_1/?hs=false&tok=2l2zNBOKETV581

(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.