Ben lemasurier wrote:
Hey everyone,
Is there a way to dispaly the current cursor position? e.g,, "character
23".
thanks!
Ben
With 'ruler' on, or with the status line displayed (i.e., 'laststatus'
set to 2 for "always", or to 1 in split-window mode) it is displayed
near the right end of the status line or command-line (a little to the
left of 'Top' 'All' 'Bot' or percentage), in the form
681,7
meaning "line 681 column 7"; or
19,18-29
meaning "line 19, 18th byte, screen column 19". When "byte" and
"column" numbers are identical only one column is shown. They can differ
in the following cases:
- with hard tabs, which are one byte each but occupy between 1 and 8
screen columns;
- depending on the 'encoding', with multibyte characters (such as
anything above 127 if &enc == "utf-8") which are several bytes, but
occupy only 1 screen column (or 2 for CJK "wide" glyphs).
- depending on the 'encoding', when using "composing characters" (e.g.
Semitic short vowel marks) which are 1 or more bytes but occupy no
screen column of their own (they are "overprinted" on the preceding
"spacing" character).
- partly depending on the settings of 'list' and 'listchars', when there
are characters represented, usually in blue, as ^M (two screen columns,
one byte) or <8F> (four screen columns, one byte), etc.
Best regards,
Tony.