From 4381c714b39dba37b5e55ba829067c90f2a9338e Mon Sep 17 00:00:00 2001 From: Mailson Lira Date: Fri, 23 Mar 2012 12:27:30 -0300 Subject: [PATCH] Custom server url To use a custom url to another lodgeit server the user just need to set the g:lodgeit_host variable. Signed-off-by: Mailson Lira --- plugin/lodgeit.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/lodgeit.vim b/plugin/lodgeit.vim index 829c7e6..a086c11 100644 --- a/plugin/lodgeit.vim +++ b/plugin/lodgeit.vim @@ -11,6 +11,10 @@ " map ^P :Lodgeit " (where ^P is entered using ctrl + v, ctrl + p in vim) +if !exists("g:lodgeit_host") + let g:lodgeit_host = 'paste.pocoo.org' +endif + function! s:LodgeitInit() python << EOF @@ -18,7 +22,7 @@ import vim import re from xmlrpclib import ServerProxy -host = 'paste.pocoo.org' +host = vim.eval('g:lodgeit_host') srv = ServerProxy('http://%s/xmlrpc/' % (host, ), allow_none=True)