1820665 Members
2275 Online
109626 Solutions
New Discussion юеВ

vi column number

 
Steve_3
Frequent Advisor

vi column number

How do you display the column number in vi?

thanks,
steve
6 REPLIES 6
Rodney Hills
Honored Contributor

Re: vi column number

vi doesn't.

but "vim" does. Check it out the software porting and archive center.

It runs like "vi" but with extensions.

-- Rod Hills
There be dragons...
melvyn burnard
Honored Contributor

Re: vi column number

vi cannot do this, to my knowledge.
You can do thing slike show line numbers by giving the ex cmd
:se num
in the vi sesion, but not columns.

see man ex for more info.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Hai Nguyen_1
Honored Contributor

Re: vi column number

# vi filename

Then enter the following and hit enter:
:set number

Hai
Ian Kidd_1
Trusted Contributor

Re: vi column number

you can use
:set number
to see the line numbers, but as far as I know, you can't show column numbers. For a list of options in vi, type in
:set all
If at first you don't succeed, go to the ITRC
Chris Lonergan
Advisor

Re: vi column number

A useful feature is the | (pipe) which will take you to a particular column.

i.e. 50| will position the cursor on column 50.

Hope this helps

Chris
MANOJ SRIVASTAVA
Honored Contributor

Re: vi column number

Hi Steve


:se nu


in the vi mode will giv the col no. but to know about rows you need vim or some other editor .

vim can be had from :

http://www.vim.org/


Manoj Srivastava