diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-01 21:09:53 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-01 22:29:03 -0400 |
commit | b1cd67b62e58c7f7d4139416e6813f8f50bc0fd6 (patch) | |
tree | e012d75f3c6853bebaa99b186209f8b9a53ea39c /runtime/macros | |
parent | 710f0eae2f5a626a0771acbb1fb32e121bbf2bde (diff) | |
download | rneovim-b1cd67b62e58c7f7d4139416e6813f8f50bc0fd6.tar.gz rneovim-b1cd67b62e58c7f7d4139416e6813f8f50bc0fd6.tar.bz2 rneovim-b1cd67b62e58c7f7d4139416e6813f8f50bc0fd6.zip |
vim-patch:4072ba571bab
Update runtime files.
https://github.com/vim/vim/commit/4072ba571babd733d1800c082416fe8fe3c28ed7
Omit vim9 references.
Omit assert_fails(). Patch v8.2.1183 is not ported yet.
Diffstat (limited to 'runtime/macros')
-rw-r--r-- | runtime/macros/less.vim | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/runtime/macros/less.vim b/runtime/macros/less.vim index 4883dae41a..a4f96f340e 100644 --- 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 |