News for hackers. Stuff that matters.
Re:Vim 7.4 is released by AlexanderDhoore on Saturday August 10, 2013 @03:54PM (#6192420)
I've been digging deeper and deeper into vimscript and also scripting vim with python. It's so amazing what you can do with just a few lines of hacky vimscript!

Today I made it so that every time I open a .markdown file, vim compiles it to html and opens it in my browser (using 'open' command on OS X). It also updates it automatically every time I save or leave insert mode.

I've also hacked together a python REPL inside a vim window. (Wasn't very hard, as vim has python built-in.)

Once you realise that Vim is just an extension of the command line, a new world opens up. Everything you can do from the command line, you can do from Vim. Throw in Python and the options are endless... So much POWER!!

BTW: I also discovered vim has MzScheme built-in, so don't go for emacs just because of lisp... Vim has a nicer lisp! Come to the dark side, we have cookies! (And lisp.)

Re:Vim 7.4 is released by anuragramdasan on Saturday August 10, 2013 @04:27PM (#6192550)
I never looked into it much as i started with lisp just recently and also putting that info with your vimscript makes me love vim a lot more now. Thank you kind sir.
Re:Vim 7.4 is released by S4M on Sunday August 11, 2013 @10:11AM (#6194989)
I am more of an emacs guy, but your last point is making me want to give Vim a shot...
Re:Vim 7.4 is released by Zuider on Saturday August 10, 2013 @05:50PM (#6192806)
It looks like Vim 7.4 has been compiled without MzScheme support.
Re:Vim 7.4 is released by bosie on Saturday August 10, 2013 @04:02PM (#6192445)
share the markdown code if you don't mind?
Re:Vim 7.4 is released by AlexanderDhoore on Saturday August 10, 2013 @04:05PM (#6192454)
This is VERY hacky, but that was kind of the point I was making. Hack together what you need! Here you go: http://pastebin.com/sPmPsCgY

Edit: Safari reloads the existing tab, so set the default browser to Safari if you want that.

Re:Vim 7.4 is released by bosie on Saturday August 10, 2013 @04:15PM (#6192498)
that is quite clever. works here too. any idea how you could convince firefox to reload the tab rather than creating a new one?
Re:Vim 7.4 is released by mharju on Saturday August 10, 2013 @05:44PM (#6192787)
You can use AppleScript to accomplish that. See for example https://github.com/mharju/vim-fiddle/blob/master/template/fi... for hints on how to do it.
Re:Vim 7.4 is released by bosie on Saturday August 10, 2013 @06:30PM (#6192916)
thank you. and thanks to alex too ;)
Re:Vim 7.4 is released by petepete on Sunday August 11, 2013 @07:11AM (#6194676)
vim-instant-markdown is an excellent plugin if you edit a lot of markdown content.

https://github.com/suan/vim-instant-markdown