Hi,
It just does not work, if I do
let x=getline('.')
let y='\%>' . col('.') . 'v\s\+$'
let ws=match(x, y)
echo ws
The result is always "-1", now matter of whitespaces before cursor or not.
So, the '\%>' . col('.') . 'v' matches everything after cursor and \s\+
should match the whitespaces.
I think I understand ... but it does not work :(
--
View this message in context:
http://www.nabble.com/check-if-only-whitespaces-before-cursor-in-current-line-tp24390733p24414449.html
Sent from the Vim - General mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---