[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About column numbers
From: |
Yuri Khan |
Subject: |
Re: About column numbers |
Date: |
Thu, 31 Mar 2016 00:02:20 +0600 |
On Wed, Mar 30, 2016 at 11:28 PM, Angelo Graziosi
<address@hidden> wrote:
> Yes, I know.. this is not a fundamental, but why that "unnatural"
> convention? I don't know other editor/IDE which uses columns from zero..
Vim counts columns from 1.
Midnight Commander counts from 0.
Mousepad counts from 0.
Nano counts from 1.
Joe counts from 1.
Gedit counts from 1.
Kate counts from 1.
Geany counts from 0.
Anjuta counts from 0.
Firefox’s Scratchpad counts from 1.
Counting columns from 0 is very convenient. You look at the column
number and immediately know how many characters you have before the
point, and whether you are on a tab stop.
Lines are a different beast — you have to be compatible with the
convention compilers use to report errors, and pretty much all of them
count lines from 1.
- About column numbers, Angelo Graziosi, 2016/03/29
- Re: About column numbers, psachin, 2016/03/30
- Re: About column numbers, Eli Zaretskii, 2016/03/30
- Re: About column numbers, Angelo Graziosi, 2016/03/30
- RE: About column numbers, Drew Adams, 2016/03/30
- Re: About column numbers,
Yuri Khan <=
- Re: About column numbers, Andreas Schwab, 2016/03/30
- Re: About column numbers, Yuri Khan, 2016/03/30
- Re: About column numbers, Andreas Schwab, 2016/03/30
- Re: About column numbers, Yuri Khan, 2016/03/30
- Re: About column numbers, Stefan Monnier, 2016/03/31
- Re: About column numbers, Clément Pit--Claudel, 2016/03/31
- Re: About column numbers, Stefan Monnier, 2016/03/31