aboutsummaryrefslogtreecommitdiff
path: root/runtime/plugin/man.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-23 17:52:47 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-09-23 00:05:33 -0400
commit4fb75d61c2c52ac25de96763788775f5e2d27dd7 (patch)
tree2664c35f3db7d370099742d9f6fd5ab04c9b2b4c /runtime/plugin/man.vim
parent998d0ffc09d5c7358db62dc88c2e2b87622f60b5 (diff)
downloadrneovim-4fb75d61c2c52ac25de96763788775f5e2d27dd7.tar.gz
rneovim-4fb75d61c2c52ac25de96763788775f5e2d27dd7.tar.bz2
rneovim-4fb75d61c2c52ac25de96763788775f5e2d27dd7.zip
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
Diffstat (limited to 'runtime/plugin/man.vim')
-rw-r--r--runtime/plugin/man.vim6
1 files changed, 6 insertions, 0 deletions
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(<f-args>)