1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 11:30:29 +01:00

renamed module bloggervim to vimblogger, changes in makeprg for rst files

This commit is contained in:
2010-11-29 18:10:39 +01:00
parent f39c090921
commit b3d266aca3
4 changed files with 9 additions and 6 deletions

View File

@@ -24,8 +24,8 @@ if !exists("g:blogger_pass")
let g:blogger_pass = "" let g:blogger_pass = ""
endif endif
map <F5> :call <SID>Restify()<cr> map <F6> :call <SID>Restify()<cr>
map <F6> :call <SID>Rst2Blogger()<cr> map <F7> :call <SID>Rst2Blogger()<cr>
if !exists('*s:Restify') if !exists('*s:Restify')
python << EOF python << EOF
@@ -38,9 +38,11 @@ import vim
scriptdir = os.path.dirname(vim.eval('expand("<sfile>")')) scriptdir = os.path.dirname(vim.eval('expand("<sfile>")'))
sys.path.insert(0, scriptdir) sys.path.insert(0, scriptdir)
from bloggervim.rest import blogPreview, blogArticleString try:
from bloggervim.blogger import VimBlogger from vimblogger.rest import blogPreview, blogArticleString
from vimblogger.blogger import VimBlogger
except ImportError:
print "Plugin blogger cannot be loaded, due to lack of required modules"
#}}} #}}}
EOF EOF

View File

@@ -1,10 +1,11 @@
" Some common settings for all reSt files " Some common settings for all reSt files
setlocal textwidth=80 setlocal textwidth=80
setlocal makeprg=rst2html.py\ %\ %.html setlocal makeprg=rst2html.py\ \"%\"\ \"%:p:r.html\"
setlocal spell setlocal spell
setlocal smartindent setlocal smartindent
setlocal autoindent setlocal autoindent
setlocal formatoptions=tcq "set VIms default setlocal formatoptions=tcq "set VIms default
let g:blogger_login="gryf73" let g:blogger_login="gryf73"
let g:blogger_name="rdobosz" let g:blogger_name="rdobosz"
let g:blogger_browser=1 let g:blogger_browser=1