I have a script that formats a window I create with gvim (big, 7.3.875)

The script, among other things, turns number off -- this works as long
as my .vimrc only sets number.  If my vimrc sets relativenumber the
scripted nonumber has no effect, and the window opens with
relativenumbers -- even more perplexing, verbose set number? reports
nonumber, and that it was set via the tinyscript.vim, but the window
has relative numbers bigger'n doggy doo.

steps to reproduce:

    - make a directory so you can whack it all easily when you're done
    - cd to that new directory
    - create tinyscript.vim containing only 
        set nonumber
    - create tinyvimrc containing only
        set nocompatible
        set number
    - create tinyvimrc2 containing only
        set nocompatible
        set relativenumber

to see gvim start as it's supposed to, run

    gvim --noplugin -u tinyvimrc -c 'source tinyscript.vim'

the window will open with number off

however, if you start gvim with

    gvim --noplugin -u tinyvimrc2 -c 'source tinyscript.vim'

the window will open with relative numbers showing, but mis-reported
by :verbose set number?

maybe this was introduced when we changed from showing a zero for
current line to showing the current line number in relativenumber (a
wild guess) -- I was starting to get used to that when this weirdness
showed up so I had to change my vimrc back to 'number'

tia,
tp

-- 
-- 
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