dot_vim
This commit is contained in:
parent
f0510126ba
commit
7a7c647c22
212 changed files with 30625 additions and 30625 deletions
18
dot_vim/charm.vim
Normal file
18
dot_vim/charm.vim
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue