comparison runtime/macros/less.vim @ 7245:8896150aba23

commit https://github.com/vim/vim/commit/e392eb41f8dfc01bd13634e534ac6b4d505326f4 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 19 20:38:09 2015 +0100 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Thu, 19 Nov 2015 20:45:05 +0100
parents 32de51778c27
children 4aae8146c21f
comparison
equal deleted inserted replaced
7244:b0d0413ea41f 7245:8896150aba23
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: 2014 May 13 3 " Last Change: 2015 Nov 15
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
45 set viminfo= 45 set viminfo=
46 set nows 46 set nows
47 " Inhibit screen updates while searching 47 " Inhibit screen updates while searching
48 let s:lz = &lz 48 let s:lz = &lz
49 set lz 49 set lz
50
51 " Allow the user to define a function, which can set options specifically for
52 " this script.
53 if exists('*LessInitFunc')
54 call LessInitFunc()
55 endif
50 56
51 " Used after each command: put cursor at end and display position 57 " Used after each command: put cursor at end and display position
52 if &wrap 58 if &wrap
53 noremap <SID>L L0:redraw<CR>:file<CR> 59 noremap <SID>L L0:redraw<CR>:file<CR>
54 au VimEnter * normal! L0 60 au VimEnter * normal! L0