- 629 名前:名無しさん@お腹いっぱい。 mailto:sage [2008/10/12(日) 21:24:18 ]
- おれならこうかく
function! s:SynchronizeWindow() let nCurWin = winnr() let nCurBuf = bufnr("%") let nCurTop = line("w0") let nCurBot = line("w$") wincmd w if nCurWin != winnr() && nCurBuf == bufnr("%") execute printf("normal! %dzt", nCurBot + 1) endif wincmd W wincmd W if nCurWin != winnr() && nCurBuf == bufnr("%") execute printf("normal! %dzb", nCurTop - 1) endif wincmd w endfunction
|

|