Skip to content

Commit

Permalink
Custom server url
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
omailson committed Mar 23, 2012
1 parent 3c7b9d8 commit 4381c71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugin/lodgeit.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
" map ^P :Lodgeit<CR>
" (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

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)

Expand Down

0 comments on commit 4381c71

Please sign in to comment.