comparison runtime/macros/less.vim @ 23305:fab58304f77d

Update runtime files. Commit: https://github.com/vim/vim/commit/4072ba571babd733d1800c082416fe8fe3c28ed7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 23 13:56:35 2020 +0100 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Wed, 23 Dec 2020 14:00:04 +0100
parents 74e3316c1d5a
children 4027cefc2aab
comparison
equal deleted inserted replaced
23304:e438ec7ffd5d 23305:fab58304f77d
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: 2020 May 18 3 " Last Change: 2020 Dec 17
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
33 endif 33 endif
34 next 34 next
35 endwhile 35 endwhile
36 endif 36 endif
37 37
38 set nocp 38 " we don't want 'compatible' here
39 syntax on 39 if &cp
40 set nocp
41 endif
42
43 " enable syntax highlighting if not done already
44 if !get(g:, 'syntax_on', 0)
45 syntax enable
46 endif
47
40 set so=0 48 set so=0
41 set hlsearch 49 set hlsearch
42 set incsearch 50 set incsearch
43 nohlsearch 51 nohlsearch
44 " Don't remember file names and positions 52 " Don't remember file names and positions