How do I type numbers in vi?
5,213
You need to get into insert mode by typing "i".
Related videos on Youtube
![CoffeeRain](https://i.stack.imgur.com/fNtQM.png?s=256&g=1)
Author by
CoffeeRain
Updated on September 18, 2022Comments
-
CoffeeRain almost 2 years
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.-
Diogo over 12 yearsDid you tried to press "Insert" before entering numbers?
-
user5249203 over 12 yearsYou might benefit from working through a vi tutorial (example)
-
-
CoffeeRain over 12 yearsI am... (fifteen characters)
-
Scott C Wilson over 12 yearsAre you perhaps using the numeric keypad without the Num Lock button pressed?
-
CoffeeRain over 12 yearsMy keyboard has just the line of numbers on the top.
-
Scott C Wilson over 12 yearsUse the command ":se showmode" (no quotes) and make sure you are in Insert mode (it will show -- INSERT --) at the bottom of the screen.