dotfiles

Author: Kyle Fuller <inbox@kylefuller.co.uk> 2012-01-19 13:05:53 +0000 +0000
Committer: Kyle Fuller <inbox@kylefuller.co.uk> 2012-01-19 13:05:53 +0000 +0000
Commit: d7de11898e1c43fe6651a52a5647e963ba6ea9d9
Parent: 1377f27674724a2c952c62f5b7a203f7cf8a6cc8


vim: Add commands to paste, rst2pdf and wordcount
diff --git a/.vimrc b/.vimrc
index 5b175bbf3d6f02b41ada64394b9c2d3f3ed5e5cd..31c2b625c920bdc10c5f7d4651b250b9794195eb 100644
--- a/.vimrc
+++ b/.vimrc
@@ -48,3 +48,12 @@ set expandtab " Expand tabs into spaces
 autocmd FileType cpp set noexpandtab
 
 set mouse=a
+
+" Paste
+command! Pa :w !curl -F 'paste=<-' http://stormy-warrior-8889.herokuapp.com
+
+" Wordcount
+command! Wc :w !wc
+
+" Restructured text to pdf then open the pdf
+command! Rp :!rst2pdf % && open %:r.pdf