Andy Wokula <[email protected]> [09-10-01 01:42]:
> 
> [email protected] schrieb:
> > Hi,
> > 
> > for scripting purposes I am searching a function in vimscript,
> >     which returns the linenumber of the window the cursor is 
> >     currently in.
> >     getpos() return beside other things the number of the line
> >     when set number is on.
> >     I am looking for a function which returns a number
> >     between 0/1 and winheight() regardless how long the file
> >     is (even if there no file at all)
> 
> You can start here:
>     :h line()
>     :echo line("w0") line("w$")
> 
> >     Thank you very much for your help in advance!
> > 
> >     PS: Why does vim indents the text of this mail after
> >     the first line in this mysterious was?
> 
> e.g. wrong filetype and Vim found the "for" keyword?
> 
> >     Keep hacking!
> 
> thx for the suggestion
> 
> >     mcc
> 
> -- 
> Andy
> 
> 
Thanks for all the help! For the indentation problem: I will end this
line with for
and get no extra identation. The ft is set to "filetype=mail". The
mail is written with mutt. 

I notice these sudden indentation from time to time in all sorts
of texts even filetype-less ones. 

Keep hacking! :)
mcc

-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to