summaryrefslogtreecommitdiffstats
path: root/runtime/macros
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-19 20:38:09 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-19 20:38:09 +0100
commite392eb41f8dfc01bd13634e534ac6b4d505326f4 (patch)
tree188e4d4e8ebeb50089cca09785475e4cfd72734b /runtime/macros
parent97b0b0ec764d3a247ef600d809b965d5ab37155d (diff)
Update runtime files.
Diffstat (limited to 'runtime/macros')
-rw-r--r--runtime/macros/less.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/macros/less.vim b/runtime/macros/less.vim
index 9042e849ca..72b53f2698 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: 2014 May 13
+" Last Change: 2015 Nov 15
" Avoid loading this file twice, allow the user to define his own script.
if exists("loaded_less")
@@ -48,6 +48,12 @@ set nows
let s:lz = &lz
set lz
+" Allow the user to define a function, which can set options specifically for
+" this script.
+if exists('*LessInitFunc')
+ call LessInitFunc()
+endif
+
" Used after each command: put cursor at end and display position
if &wrap
noremap <SID>L L0:redraw<CR>:file<CR>