diff options
author | Anmol Sethi <anmol@aubble.com> | 2016-08-12 06:07:13 -0400 |
---|---|---|
committer | Anmol Sethi <anmol@aubble.com> | 2016-08-24 11:51:59 -0400 |
commit | 10b014ca7bbf72d68f82803bc58f35127ff904f6 (patch) | |
tree | 3764b5b78020eb090b1ed042955ccc3aa630d266 /runtime/ftplugin | |
parent | 728d5823331cf9d36ffa8389e5819e67324735d8 (diff) | |
download | rneovim-10b014ca7bbf72d68f82803bc58f35127ff904f6.tar.gz rneovim-10b014ca7bbf72d68f82803bc58f35127ff904f6.tar.bz2 rneovim-10b014ca7bbf72d68f82803bc58f35127ff904f6.zip |
man.vim: set window local options when reusing buffer
This is necessary incase the buffer was previously opened in a different
tab, in which the window options there do not carry over. It is not
explicitly documented in ':help local-options' but that is how it works.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/man.vim | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 6a9ad27956..fddfee3c31 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -33,12 +33,7 @@ setlocal tabstop=8 setlocal softtabstop=8 setlocal shiftwidth=8 -setlocal nonumber -setlocal norelativenumber -setlocal foldcolumn=0 -setlocal colorcolumn=0 -setlocal nolist -setlocal nofoldenable +call man#set_window_local_options() if !exists('g:no_plugin_maps') && !exists('g:no_man_maps') nmap <silent> <buffer> <C-]> <Plug>(Man) |