Hi, I found some issues with less.vim.
1. The cursor jumps unintentionally when I hit ':' to go to command line mode then hit <CR>. It occurs only once after executing less.sh and before start searching using '/' or '?'. 2. The cursor doesn't stay at the last screen line when hit <Up>, <PageUp> or some other keys. Attached patches fix them. Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
# HG changeset patch # Parent 858fb7687420879a263b302f52c5befa7510a36e diff --git a/runtime/macros/less.vim b/runtime/macros/less.vim --- a/runtime/macros/less.vim +++ b/runtime/macros/less.vim @@ -184,6 +184,7 @@ endfun call s:Forward() +cunmap <CR> " Quitting noremap q :q<CR>
# HG changeset patch # Parent aef16ae1a562934b6d284ec3723593d7166ca2fc diff --git a/runtime/macros/less.vim b/runtime/macros/less.vim --- a/runtime/macros/less.vim +++ b/runtime/macros/less.vim @@ -87,6 +87,8 @@ map <C-V> <Space> map f <Space> map <C-F> <Space> +map <PageDown> <Space> +map <S-Down> <Space> map z <Space> map <Esc><Space> <Space> fun! s:NextPage() @@ -116,10 +118,13 @@ map <C-E> <CR> map j <CR> map <C-J> <CR> +map <Down> <CR> " Scroll one page backward noremap <script> b <C-B><SID>L map <C-B> b +map <PageUp> b +map <S-Up> b map w b map <Esc>v b @@ -133,6 +138,7 @@ map <C-Y> k map <C-P> k map <C-K> k +map <Up> k " Redraw noremap <script> r <C-L><SID>L @@ -241,6 +247,12 @@ unmap v unmap / unmap ? + unmap <Up> + unmap <Down> + unmap <PageDown> + unmap <PageUp> + unmap <S-Down> + unmap <S-Up> endfun " vim: sw=2
