trying to make category searching work

This commit is contained in:
2026-03-21 16:04:00 +00:00
parent 6c62e2208c
commit dd1a0d984d
4 changed files with 104 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ if &shortmess =~ 'A'
else
set shortmess=aoO
endif
badd +100 posts/site.norg
badd +116 posts/site.norg
argglobal
%argdel
edit posts/site.norg
@@ -30,12 +30,16 @@ setlocal foldenable
sil! normal! zo
31
sil! normal! zo
let s:l = 100 - ((26 * winheight(0) + 27) / 54)
93
sil! normal! zo
108
sil! normal! zo
let s:l = 116 - ((28 * winheight(0) + 27) / 54)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 100
normal! 0111|
keepjumps 116
normal! 07|
tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
@@ -48,6 +52,7 @@ if filereadable(s:sx)
exe "source " . fnameescape(s:sx)
endif
let &g:so = s:so_save | let &g:siso = s:siso_save
nohlsearch
doautoall SessionLoadPost
unlet SessionLoad
" vim: set ft=vim :