Mercurial > vim
view src/testdir/test98a.in @ 5190:fc6f4a653265 v7.4a.021
updated for version 7.4a.021
Problem: Using feedkeys() doesn't always work.
Solution: Omit feedkeys(). (Ken Takata)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 14 Jul 2013 13:02:12 +0200 |
parents | 7a6ce0c426fe |
children |
line wrap: on
line source
" We don't want the status line to cause problems: set laststatus=0 redraw! let g:totalLines = &lines * 20 let middle = g:totalLines / 2 wincmd n wincmd o for i in range(1, g:totalLines) call setline(i, 'LINE ' . i) endfor exe string(middle) normal zt normal M aboveleft vert new for i in range(1, g:totalLines) call setline(i, 'line ' . i) endfor exe string(middle) normal zt normal M setl scb wincmd p setl scb wincmd w