soywiki 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/soywiki.rb +1 -1
- data/lib/soywiki.vim +5 -5
- metadata +3 -3
data/lib/soywiki.rb
CHANGED
data/lib/soywiki.vim
CHANGED
@@ -192,9 +192,9 @@ func! s:load_page(page, split)
|
|
192
192
|
call writefile([title, '', ''], file)
|
193
193
|
endif
|
194
194
|
if (a:split == 2)
|
195
|
-
exec "
|
195
|
+
exec "botright vsplit ". file
|
196
196
|
elseif (a:split == 1)
|
197
|
-
exec "
|
197
|
+
exec "botright split ". file
|
198
198
|
elseif (a:split == 0)
|
199
199
|
exec "e ".file
|
200
200
|
endif
|
@@ -475,7 +475,7 @@ func! s:extract(...) range
|
|
475
475
|
endif
|
476
476
|
call writefile([page_title, '', ''], file)
|
477
477
|
endif
|
478
|
-
exec "
|
478
|
+
exec "botright vsplit ".file
|
479
479
|
else
|
480
480
|
let targetWindow = bufwinnr(bufnr(file))
|
481
481
|
exe targetWindow."wincmd w"
|
@@ -527,7 +527,7 @@ func! s:expand(seamless, vertical)
|
|
527
527
|
let res = system(s:expand_command . " seamful " . bufname('%'))
|
528
528
|
endif
|
529
529
|
if a:vertical
|
530
|
-
|
530
|
+
botright vnew
|
531
531
|
else
|
532
532
|
new
|
533
533
|
endif
|
@@ -567,7 +567,7 @@ func! s:global_mappings()
|
|
567
567
|
noremap <silent> <leader>o :call <SID>find_next_href_and_open()<cr>
|
568
568
|
nnoremap <silent> q :close<cr>
|
569
569
|
" for netrw vertical split
|
570
|
-
nnoremap ,O :exec "silent
|
570
|
+
nnoremap ,O :exec "silent botright vsplit ". expand("<cWORD>")<cr>
|
571
571
|
|
572
572
|
command! -bar -nargs=1 -range -complete=file SWAppend :<line1>,<line2>call s:extract(<f-args>, 'append', 0)
|
573
573
|
command! -bar -nargs=1 -range -complete=file SWInsert :<line1>,<line2>call s:extract(<f-args>, 'insert', 0)
|