In my case it returns -1 ....
Here is my complete function from .vimrc:
map <tab> :call TestComplete()<cr>
function TestComplete()
let x=getline('.')
let y='\%>' . col('.') . 'v\s\+$'
let ws=match(x, y)
echo ws
endfunction
it echos -1 no matter what I do. And I also do not get it to work typing for
Example:
:echo ws=match(x,y)
--
View this message in context:
http://www.nabble.com/check-if-only-whitespaces-before-cursor-in-current-line-tp24390733p24414975.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
-~----------~----~----~----~------~----~------~--~---