bottar

u/bottar




r/applehelp•

I'm a full time/spare time software developer who's used the Linux platform full time for the last 10 years. I'm getting a new Macbook Pro in a few days for payment on a bounty. I'm a command line junky and spend my days in Vim. So what do I do with this new hardware/OS? I don't want an other overpriced terminal, I already have a few of those. I wan't to use this new machine to it's fullest potential and learn as many new things about the Mac/OS X as possible. Tips, links, and advice are what I'm looking for.

What's the best approach for learning/using a Mac/OS X for a developer coming from Linux?

713

r/vim•

I need a timer in a vim script I want to improve. Vim does not support the idea of a timer in Vim script. So doing something like:

!fun callBack()
    do stuff
endfun

timer( 300, callBack )

Is not possible.

I've tried using Python's threading.Timer and signals, SIGALRM, in Python with little luck. I actually got the Timer object to work, but when the Timer thread would run it would call vim.command( "stuff" ) and it would take seconds for "stuff" to execute. I'm guessing it's a threading issue.

I've looked into using the Vim clientserver feature with Python's Timer. So if the Timer goes off the Timer thread would spawn a call to vim and use the new vim process to send c

318

You've reached the end of this feed.