Hello,

I noticed ftplugin/man.vim has problem if user set nu or rnu.

I'm not sure disabling the nu/rnu is a good idea.
I just follow the rule of VIM's help page.
If someone wants to set nu/rnu in man page, we can change like:
    let $MANWIDTH = winwidth(0) - &nu - &rnu

I'm not sure 'nofen' is really needed.  Just wanted to disable all
the settings which affects winwidth.

Thanks,
namsh

diff -r aa77364a8653 runtime/ftplugin/man.vim
--- a/runtime/ftplugin/man.vim  Sun Jul 07 16:15:35 2013 +0200
+++ b/runtime/ftplugin/man.vim  Mon Jul 15 10:45:18 2013 +0900
@@ -151,7 +151,7 @@
   " Avoid warning for editing the dummy file twice
   setl buftype=nofile noswapfile

-  setl ma
+  setl ma nonu nornu nofen
   silent exec "norm 1GdG"
   let $MANWIDTH = winwidth(0)
   silent exec "r!/usr/bin/man ".s:GetCmdArg(sect, page)." | col -b"

-- 
-- 
You received this message from the "vim_dev" 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_dev" 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/groups/opt_out.


Raspunde prin e-mail lui