Hi,

I have a small patch that may help others for ftplugin/man.vim.

It adds the ability to open the man page in a vertical split (as well
as the default of a horizontal split).
It also can swap the splits (so, in the case of the vertical split,
the man page window appears on the right rather than the defaul left
side).

Should I join the vim-dev mailing list and pop it in there?


If you are interested, it is:

diff -u /usr/share/vim/vim74/ftplugin/man.vim ~/.vim/ftplugin/cca_man.vim
--- /usr/share/vim/vim74/ftplugin/man.vim    2015-03-28 09:07:55.000000000 +0000
+++ /home/chris/.vim/ftplugin/cca_man.vim    2015-04-06 08:45:00.625563087 +0100
@@ -1,7 +1,11 @@
 " Vim filetype plugin file
 " Language:    man
 " Maintainer:    SungHyun Nam <[email protected]>
-" Last Change:    2014 Dec 29
+" Last Change:    2015 Apr 6
+"
+" additions to allow vertical splits for the man window
+let g:ccamanview="hori"
+let g:ccamanpos=0

 " To make the ":Man" command available before editing a manual page, source
 " this script from your startup vimrc file.
@@ -145,7 +149,16 @@
       endwhile
     endif
     if &filetype != "man"
-      new
+      if g:ccamanview=="vert"
+        " split vertically (new splits horizontally)
+        vnew
+      else
+        " split horizontally
+        new
+      endif
+      if g:ccamanpos==1
+        wincmd r
+      endif
       setl nonu fdc=0
     endif
   endif

regards

-- 
Chris Allison

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to