I am writing a lot of CoffeeScript in VIM and I compile it very frequently by typing : coffee -c %
. How can I easily create a macro so I don’t need to keep typing this?
1 Answer
Have a look at (with the single quotes typed):
:help 'makeprg'
For example, try this:
:set makeprg=coffee\ -c\ %
Then you can just type :make
instead.
-
-
-
Awesome man, thanks a lot! I was fooling around with Unix aliases forever and it turned out the answer was way more simple than I thought. This works great. Thanks again! Jan 30, 2015 at 2:23