On Thu, July 9, 2009 3:39 pm, TheLonelyStar wrote:
>
>
> Can no pne help we with this?
> I can get the current line:
>
> let x=line(".")
>
> But how do I check if there are only whitespaces before cursor?

something like this maybe?
let x=getline('.')
let y='\%>' . col('.') . 'v\s\+$'
let ws=match(x, y)


regards,
Christian


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

Reply via email to