comparison runtime/macros/less.vim @ 11347:4aae8146c21f

Update runtime files. commit https://github.com/vim/vim/commit/cd5c8f82507822467232ab71e1ebbaae19595916 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 9 20:11:58 2017 +0200 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Apr 2017 20:15:03 +0200
parents 8896150aba23
children 74e3316c1d5a
comparison
equal deleted inserted replaced
11346:75f4dd526eb8 11347:4aae8146c21f
1 " Vim script to work like "less" 1 " Vim script to work like "less"
2 " Maintainer: Bram Moolenaar <Bram@vim.org> 2 " Maintainer: Bram Moolenaar <Bram@vim.org>
3 " Last Change: 2015 Nov 15 3 " Last Change: 2017 Mar 31
4 4
5 " Avoid loading this file twice, allow the user to define his own script. 5 " Avoid loading this file twice, allow the user to define his own script.
6 if exists("loaded_less") 6 if exists("loaded_less")
7 finish 7 finish
8 endif 8 endif
79 echo "G End of file g Start of file" 79 echo "G End of file g Start of file"
80 echo "N% percentage in file" 80 echo "N% percentage in file"
81 echo "\n" 81 echo "\n"
82 echo "/pattern Search for pattern ?pattern Search backward for pattern" 82 echo "/pattern Search for pattern ?pattern Search backward for pattern"
83 echo "n next pattern match N Previous pattern match" 83 echo "n next pattern match N Previous pattern match"
84 if &foldmethod != "manual"
85 echo "\n"
86 echo "zR open all folds zm increase fold level"
87 endif
84 echo "\n" 88 echo "\n"
85 echo ":n<Enter> Next file :p<Enter> Previous file" 89 echo ":n<Enter> Next file :p<Enter> Previous file"
86 echo "\n" 90 echo "\n"
87 echo "q Quit v Edit file" 91 echo "q Quit v Edit file"
88 let i = input("Hit Enter to continue") 92 let i = input("Hit Enter to continue")
94 map f <Space> 98 map f <Space>
95 map <C-F> <Space> 99 map <C-F> <Space>
96 map <PageDown> <Space> 100 map <PageDown> <Space>
97 map <kPageDown> <Space> 101 map <kPageDown> <Space>
98 map <S-Down> <Space> 102 map <S-Down> <Space>
99 map z <Space> 103 " If 'foldmethod' was changed keep the "z" commands, e.g. "zR" to open all
104 " folds.
105 if &foldmethod == "manual"
106 map z <Space>
107 endif
100 map <Esc><Space> <Space> 108 map <Esc><Space> <Space>
101 fun! s:NextPage() 109 fun! s:NextPage()
102 if line(".") == line("$") 110 if line(".") == line("$")
103 if argidx() + 1 >= argc() 111 if argidx() + 1 >= argc()
104 " Don't quit at the end of the last file 112 " Don't quit at the end of the last file