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

Hi,

Sorry, if this is getting a stupid question. I searched the documentation,
but I can not find another definition for "match" than higlighting in the
current buffer.

I mean, I need something like this:
if "only_whitespaces_before_cursor" then
   do_something
else
  do_something_else
endif

Thanks!
Nathan
-- 
View this message in context: 
http://www.nabble.com/check-if-only-whitespaces-before-cursor-in-current-line-tp24390733p24412419.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to