aboutsummaryrefslogtreecommitdiff
path: root/runtime/macros/less.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-04 13:56:28 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-04 13:56:28 -0400
commite2cc3f98fb3ca771d9bd108ae9c37c19bea8025b (patch)
treee45f71a17c410e456c56de52f94f5c7f95152ad7 /runtime/macros/less.vim
parent490804ed33a5da70ba14bc54bceea5decb62874a (diff)
parent6a32852137a3d54131534fe628230eca5311d3fc (diff)
downloadrneovim-e2cc3f98fb3ca771d9bd108ae9c37c19bea8025b.tar.gz
rneovim-e2cc3f98fb3ca771d9bd108ae9c37c19bea8025b.tar.bz2
rneovim-e2cc3f98fb3ca771d9bd108ae9c37c19bea8025b.zip
Merge pull request #4704 from KillTheMule/vim-runtime-patches-all
vim-patch:{a0f849e, d7464be, b4ff518, e392eb4, d042dc8, 2c5e8e8, 256972a, cc7ff3f}
Diffstat (limited to 'runtime/macros/less.vim')
-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 d38bd3781d..7ccbeb32ea 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>