comparison runtime/macros/less.vim @ 20552:74e3316c1d5a

Update runtime files Commit: https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 26 21:20:45 2020 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 May 2020 21:30:04 +0200
parents 4aae8146c21f
children fab58304f77d
comparison
equal deleted inserted replaced
20551:f1b23a9643fe 20552:74e3316c1d5a
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: 2017 Mar 31 3 " Last Change: 2020 May 18
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
64 endif 64 endif
65 65
66 " When reading from stdin don't consider the file modified. 66 " When reading from stdin don't consider the file modified.
67 au VimEnter * set nomod 67 au VimEnter * set nomod
68 68
69 " Can't modify the text 69 " Can't modify the text or write the file.
70 set noma 70 set nomodifiable readonly
71 71
72 " Give help 72 " Give help
73 noremap h :call <SID>Help()<CR> 73 noremap h :call <SID>Help()<CR>
74 map H h 74 map H h
75 fun! s:Help() 75 fun! s:Help()