lib/soywiki.vim in soywiki-0.5.2 vs lib/soywiki.vim in soywiki-0.5.3

- old
+ new

@@ -550,10 +550,19 @@ if res != 0 call s:open_href_under_cursor() endif endfunc +func! s:goto_homepage() + let namespace_home = s:page_namespace()."/HomePage" + if (filereadable(namespace_home)) && bufname('%') != namespace_home + call s:load_page(namespace_home, 0) + else + call s:load_page("main.HomePage", 0) + endif +endfunc + " -------------------------------------------------------------------------------- " HELP func! s:show_help() let command = g:SoyWiki#browser_command . ' ' . shellescape('http://danielchoi.com/software/soywiki.html') call system(command) @@ -605,9 +614,11 @@ noremap <buffer> <leader>x :call <SID>expand(0,1)<CR> noremap <buffer> <leader>X :call <SID>expand(1,1)<CR> noremap <buffer> <leader>hx :call <SID>expand(0,0)<CR> noremap <buffer> <leader>hX :call <SID>expand(1,0)<CR> + + noremap <buffer> <leader>H :call <SID>goto_homepage()<CR> noremap <silent> <leader>? :call <SID>show_help()<cr> nnoremap <buffer> \ gqap nnoremap <buffer> <Leader>- o<Esc>k72i-<Esc><CR>