diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2017-11-07 02:49:08 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-07 02:49:08 +0100 | 
| commit | ad527392abb60e19954d5e8dba05af282d67d15b (patch) | |
| tree | 5a8ad20c8cc49b37593e8f1089420446b731b0d0 /runtime/macros/less.vim | |
| parent | dc9290109481e5e0d0c224fecb217ceb5a4c978d (diff) | |
| parent | 20e317e22abeef20891eb70a18435559f7b09212 (diff) | |
| download | rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.gz rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.tar.bz2 rneovim-ad527392abb60e19954d5e8dba05af282d67d15b.zip | |
Merge #7499 'vim-patch: runtime'
Diffstat (limited to 'runtime/macros/less.vim')
| -rw-r--r-- | runtime/macros/less.vim | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/runtime/macros/less.vim b/runtime/macros/less.vim index 7ccbeb32ea..aad122d70a 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:	2015 Nov 15 +" Last Change:	2017 Mar 31  " Avoid loading this file twice, allow the user to define his own script.  if exists("loaded_less") @@ -81,6 +81,10 @@ fun! s:Help()    echo "\n"    echo "/pattern  Search for pattern        ?pattern  Search backward for pattern"    echo "n         next pattern match        N         Previous pattern match" +  if &foldmethod != "manual" +  echo "\n" +    echo "zR        open all folds            zm        increase fold level" +  endif    echo "\n"    echo ":n<Enter> Next file                 :p<Enter> Previous file"    echo "\n" @@ -96,7 +100,11 @@ map <C-F> <Space>  map <PageDown> <Space>  map <kPageDown> <Space>  map <S-Down> <Space> -map z <Space> +" If 'foldmethod' was changed keep the "z" commands, e.g. "zR" to open all +" folds. +if &foldmethod == "manual" +  map z <Space> +endif  map <Esc><Space> <Space>  fun! s:NextPage()    if line(".") == line("$") | 
