diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-05-13 20:23:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-05-13 20:23:24 +0200 |
commit | e968e36a00ddc735d493906f04eb207ff9aeb87c (patch) | |
tree | 280c857ada2acf51168c4484157c237ff36d89bd /runtime/macros | |
parent | 715c28635568fbbe4963b7443dd47c2f0e624eaf (diff) | |
download | vim-git-e968e36a00ddc735d493906f04eb207ff9aeb87c.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/macros')
-rw-r--r-- | runtime/macros/less.vim | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/runtime/macros/less.vim b/runtime/macros/less.vim index 6ae5ebc63..9042e849c 100644 --- a/runtime/macros/less.vim +++ b/runtime/macros/less.vim @@ -1,6 +1,6 @@ " Vim script to work like "less" " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2012 May 18 +" Last Change: 2014 May 13 " Avoid loading this file twice, allow the user to define his own script. if exists("loaded_less") @@ -87,6 +87,9 @@ noremap <script> <Space> :call <SID>NextPage()<CR><SID>L map <C-V> <Space> map f <Space> map <C-F> <Space> +map <PageDown> <Space> +map <kPageDown> <Space> +map <S-Down> <Space> map z <Space> map <Esc><Space> <Space> fun! s:NextPage() @@ -116,10 +119,14 @@ map e <CR> 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 <kPageUp> b +map <S-Up> b map w b map <Esc>v b @@ -133,6 +140,7 @@ map y k map <C-Y> k map <C-P> k map <C-K> k +map <Up> k " Redraw noremap <script> r <C-L><SID>L @@ -143,11 +151,15 @@ noremap <script> R <C-L><SID>L noremap <script> g gg<SID>L map < g map <Esc>< g +map <Home> g +map <kHome> g " End of file noremap <script> G G<SID>L map > G map <Esc>> G +map <End> G +map <kEnd> G " Go to percentage noremap <script> % %<SID>L @@ -184,6 +196,7 @@ fun! s:Backward() endfun call s:Forward() +cunmap <CR> " Quitting noremap q :q<CR> @@ -240,6 +253,18 @@ fun! s:End() unmap v unmap / unmap ? + unmap <Up> + unmap <Down> + unmap <PageDown> + unmap <kPageDown> + unmap <PageUp> + unmap <kPageUp> + unmap <S-Down> + unmap <S-Up> + unmap <Home> + unmap <kHome> + unmap <End> + unmap <kEnd> endfun " vim: sw=2 |