Mercurial > vim
diff 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 |
line wrap: on
line diff
--- 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: 2020 May 18 +" Last Change: 2020 Dec 17 " Avoid loading this file twice, allow the user to define his own script. if exists("loaded_less") @@ -35,8 +35,16 @@ if argc() > 0 endwhile endif -set nocp -syntax on +" we don't want 'compatible' here +if &cp + set nocp +endif + +" enable syntax highlighting if not done already +if !get(g:, 'syntax_on', 0) + syntax enable +endif + set so=0 set hlsearch set incsearch