How to disable "Line 0" for the current line?

340 views
Skip to first unread message

Chuy Martinez

unread,
Oct 10, 2012, 7:46:40 PM10/10/12
to spf13-vi...@googlegroups.com
Hi all,

Just found about this project via HackerNews and loving it so far !

I have a quick question that I haven't been able to find out a solution. The thing is, I don't like that the current line shows the line number as "0". How can I remove that and leave the default line numbers? that is, have the old "static" line numbers ?

When opening the editor and doing a ":set number" changes it back to normal, but I want it to behave that way by default.

Thanks for your help !

Troy Patrick

unread,
Oct 10, 2012, 10:23:25 PM10/10/12
to spf13-vi...@googlegroups.com
I just commented out the line:

Bundle 'myusuf3/numbers.vim'

There might be a better way to do it though. Not sure what else this plugin does. 

Steve Francia

unread,
Oct 10, 2012, 11:16:19 PM10/10/12
to spf13-vi...@googlegroups.com
There will be a better way soon. 
--
Steve Francia
http://stevefrancia.com
http://spf13.com
http://twitter.com/spf13

Jason S-M

unread,
Oct 12, 2012, 5:53:02 PM10/12/12
to spf13-vi...@googlegroups.com

I tried changing:

Bundle 'myusuf3/numbers.vim'

to 

" Bundle 'myusuf3/numbers.vim'

by nano .vimrc.bundles

re-launched MacVIM and the line numbers still auto-number 0 to current line.

What did I do wrong?

Steve Francia

unread,
Oct 12, 2012, 6:00:01 PM10/12/12
to spf13-vi...@googlegroups.com
You didn't delete it.. You would need to run :BundleClean!

However, there's a better way.. Simply add this to your .vimrc.local

let g:numbers=1

Jason S-M

unread,
Oct 12, 2012, 6:17:37 PM10/12/12
to spf13-vim-discuss
Thanks Steve, that is a better solution.

Why doesn't commenting out the usage work? Do bundles automatically
get loaded if found?


On Oct 12, 3:00 pm, Steve Francia <steve.fran...@gmail.com> wrote:
> You didn't delete it.. You would need to run :BundleClean!
>
> However, there's a better way.. Simply add this to your .vimrc.local
>
> let g:numbers=1
>
> --
> Steve Franciahttp://stevefrancia.comhttp://spf13.comhttp://twitter.com/spf13

Steve Francia

unread,
Oct 12, 2012, 6:20:00 PM10/12/12
to spf13-vi...@googlegroups.com
Yes

--
Steve Francia
@spf13

Chris Rohrer

unread,
Oct 16, 2012, 4:37:44 PM10/16/12
to spf13-vi...@googlegroups.com
i tried 
let g:numbers=1
but then i get
Requires Vim 7.3+
Failed loading numbers.vim
i use Vim 7.3 

J.Harts

unread,
Oct 23, 2012, 5:23:56 PM10/23/12
to spf13-vi...@googlegroups.com
i just put this in my vimrc.local which worked for me:

set numbers

nisbet

unread,
Oct 23, 2012, 5:50:53 PM10/23/12
to spf13-vi...@googlegroups.com

set numbers

Oh, this works for me too, but only for newly created files.

Steve Francia

unread,
Oct 23, 2012, 7:20:53 PM10/23/12
to spf13-vi...@googlegroups.com
Clear your cache. It's in  ~/.vimviews

Chamé Abbey

unread,
Mar 25, 2013, 3:53:55 AM3/25/13
to spf13-vi...@googlegroups.com
Hi Steve, 

I'm afraid adding 'let g:numbers=1' in .vimrc.local isn't working for me. I ended up just unblundling myusuf3/numbers.vim instead.
Reply all
Reply to author
Forward
0 new messages