4

Sometimes when I have to do basic editing of a file or write a basic script when I'm working in Terminal, I use vi. The problem is that when I type numbers, it goes to that line. Is there a way to turn this off or get around this? Surprisingly, when I searched Google and Super User, I couldn't find anything on this.

2
  • 2
    Did you tried to press "Insert" before entering numbers?
    – Diogo
    Mar 23, 2012 at 14:06
  • 1
    You might benefit from working through a vi tutorial (example) Mar 23, 2012 at 15:30

1 Answer 1

7

You need to get into insert mode by typing "i".

4
  • I am... (fifteen characters)
    – CoffeeRain
    Mar 23, 2012 at 14:18
  • Are you perhaps using the numeric keypad without the Num Lock button pressed? Mar 23, 2012 at 14:19
  • My keyboard has just the line of numbers on the top.
    – CoffeeRain
    Mar 23, 2012 at 14:34
  • Use the command ":se showmode" (no quotes) and make sure you are in Insert mode (it will show -- INSERT --) at the bottom of the screen. Mar 23, 2012 at 15:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .