From 4fb75d61c2c52ac25de96763788775f5e2d27dd7 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 23 Jan 2015 17:52:47 -0500 Subject: man.vim: convert ftplugin to actual plugin. - do not create leader maps - :norm! instead of :norm - :keepjumps during layout - use blackhole reg to avoid polluting unnamed reg - format buffer name as "man://foo(2)" - simulate behavior of `man` - buffer-local mapping of q to quit - open in new tab instead of new window - set 'nolist' - set tabstop=8 --- runtime/plugin/man.vim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 runtime/plugin/man.vim (limited to 'runtime/plugin') diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim new file mode 100644 index 0000000000..cb1316968f --- /dev/null +++ b/runtime/plugin/man.vim @@ -0,0 +1,6 @@ +if get(g:, 'loaded_man', 0) + finish +endif +let g:loaded_man = 1 + +command! -nargs=+ Man call man#get_page() -- cgit