dotfiles/.vim/charm.vim
michener 83d40113d2 First import
git-svn-id: http://photonzero.com/dotfiles/trunk@1 23f722f6-122a-0410-8cef-c75bd312dd78
2007-03-19 06:17:17 +00:00

18 lines
344 B
VimL

fu! SendToCharm(subject,mood)
if a:subject == ""
let subject=input("Subject: ")
else
let subject=a:subject
endif
if a:mood == ""
let mood=input("Mood: ")
else
let mood=a:mood
endif
exe "w!"
exe "!cat % | charm -q -s \"".subject."\" -m \"".mood."\""
endf
if !exists(":PostToLJ")
command PostToLJ :call SendToCharm("","")
endif