dotfiles

Author: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:15:42 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2014-02-10 18:16:45 +0000 +0000
Commit: 2732b7b1e64c0979964111f230463cda1fe49f27
Parent: 9e957397d008035059bc8dc2688c7e318259d353


Vim: Use makeprg instead of custom commands
diff --git a/.vimrc b/.vimrc
index 454d21bd90c7dac439527d6d1ca8bdc86ef19053..5d4b4ca06a9c862733b7238c937a69e61e25211d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -88,8 +88,7 @@
 " Wordcount
 command! Wc :w !wc
 
-" Restructured text to pdf then open the pdf
-command! Rp :!rst2pdf % && open %:r.pdf
+autocmd FileType rst set makeprg=rst2pdf\ %
 
 color jellybeans