lib/soywiki.vim in soywiki-0.2.7 vs lib/soywiki.vim in soywiki-0.2.8
- old
+ new
@@ -555,17 +555,11 @@
noremap <leader>m :call <SID>list_pages()<CR>
noremap <leader>M :call <SID>list_pages_linking_in()<CR>
noremap <silent> <leader>o :call <SID>find_next_href_and_open()<cr>
nnoremap <silent> q :close<cr>
- " reflow text
- nnoremap \ gwap
- " insert a line
- nmap <Leader>- o<Esc>k72i-<Esc><CR>
- " insert date
- map <Leader>d :r !date<CR>o
-
+
command! -bar -nargs=1 -range -complete=file SWAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 0)
command! -bar -nargs=1 -range -complete=file SWInsert :<line1>,<line2>call s:extract(<f-args>, 'insert', 0)
command! -bar -nargs=1 -range -complete=file SWLinkAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 1)
command! -bar -nargs=1 -range -complete=file SWLinkInsert :<line1>,<line2>call s:extract(<f-args>, 'insert', 1)
@@ -603,10 +597,14 @@
noremap <buffer> <leader>hx :call <SID>expand(0,0)<CR>
noremap <buffer> <leader>hX :call <SID>expand(1,0)<CR>
noremap <silent> <leader>? :call <SID>show_help()<cr>
- set nu
+ nnoremap \ gwap
+ nmap <Leader>- o<Esc>k72i-<Esc><CR>
+ map <Leader>d :r !date<CR>o
+
+ " set nu
setlocal completefunc=CompletePageTitle
augroup <buffer>
au!
autocmd BufWritePost <buffer> call s:save_revision()
augroup END