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?

Thanks!
Nathan


TheLonelyStar wrote:
> 
> Hi.
> 
> I want to bind "tab" to autocompletion in python mode.
> But when I am on a line, where there are only are whitespaces in front of
> the cursor, autocompletion does not make sense.
> Can I somehow detect this situation and insert an "tab" in that case?
> 
> Thanks!
> Nathan
> 

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