Hi TheLonelyStar!

On Do, 09 Jul 2009, TheLonelyStar wrote:

> > Please provide an exact example. Where is the cursor and what does 
> > the line look like?
> > 
> > 
> Examples (| marsk the cursor):
>       let| x=getline('.')
>       |let ws=match(x, y)
>   | jde
> 
> All these return -1

Sure, because there is just not any amount of space followed by the 
line end. 

I guess I misread your question. If you want to check, that there is 
no space between line start and the cursor use something like this:

echo match(getline('.'), '^\s\{' . col('.') . '}')


regards,
Christian
-- 
:wq!

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

Reply via email to