Mercurial > vim
diff runtime/ftplugin/man.vim @ 7272:17333ebd2bbd
commit https://github.com/vim/vim/commit/d042dc825c9b97dacd84d4728f88300da4d5b6b9
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 24 19:18:36 2015 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 26 Nov 2015 08:22:10 +0100 |
parents | 11d78e58a487 |
children | 78106b0f2c56 |
line wrap: on
line diff
--- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: man " Maintainer: SungHyun Nam <goweol@gmail.com> -" Last Change: 2014 Dec 29 +" Last Change: 2015 Nov 24 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -33,6 +33,11 @@ if &filetype == "man" nnoremap <buffer> <c-]> :call <SID>PreGetPage(v:count)<CR> nnoremap <buffer> <c-t> :call <SID>PopPage()<CR> + nnoremap <buffer> <silent> q :q<CR> + endif + + if exists('g:ft_man_folding_enable') && (g:ft_man_folding_enable == 1) + setlocal foldmethod=indent foldnestmax=1 foldenable endif let b:undo_ftplugin = "setlocal iskeyword<"