You are not logged in.

#1 2010-03-29 22:48:55

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Vim - strange behaviour

I think my vim is not working properly. I have the same .Xdefaults and vim theme in my laptop and in my university account, but I looks different on my laptop, with the line numbers and comments in black, when they should be grey. Does Archlinux overwrite the vim settings somewhere?

Here are my files:

.Xdefaults
ir_black.vim

Offline

#2 2010-03-29 22:51:15

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Vim - strange behaviour

Check your $TERM settings in both locations.  Your term at home may not support as many colors as the term at school.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2010-03-29 23:30:14

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Vim - strange behaviour

Both rxvt.

Offline

#4 2010-03-30 00:00:03

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: Vim - strange behaviour

Do you have "set nocompatible" in your ~/.vimrc file?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#5 2010-03-30 02:00:37

quintaessentia
Member
From: Florida
Registered: 2010-03-19
Posts: 4

Re: Vim - strange behaviour

Have you looked at your /etc/vimrc or /usr/share/vim/vim72/vimrc_example.vim files? I had a problem where initially everything was gray and I had to add "syntax enable" to my /etc/vimrc file.

Offline

#6 2010-03-30 10:07:10

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Vim - strange behaviour

I added "set nocompatible" at the top of my .vimrc and it didn't fix it.

I just had a look at /etc/vimrc and it contains:

" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
" /usr/share/vim/vimfiles/archlinux.vim) and sourced by the call to :runtime
" you can find below.  If you wish to change any of those settings, you should
" do it in this file (/etc/vimrc), since archlinux.vim will be overwritten
" everytime an upgrade of the vim packages is performed.  It is recommended to
" make changes after sourcing archlinux.vim since it alters the value of the
" 'compatible' option.

" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages.
runtime! archlinux.vim

" If you prefer the old-style vim functionalty, add 'runtime! vimrc_example.vim'
" Or better yet, read /usr/share/vim/vim72/vimrc_example.vim or the vim manual
" and configure vim to your own liking!

I am not sure how to solve this problem. Is there an option to reset all the settings?

Offline

#7 2010-03-30 11:52:29

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Vim - strange behaviour

What is the actual TE you are running?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2010-03-30 11:53:32

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Vim - strange behaviour

rxvt-unicode.

Offline

#9 2010-03-30 12:04:38

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Vim - strange behaviour

As discovered on irc, not lying about your TE helps tongue


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#10 2010-03-30 12:06:03

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: Vim - strange behaviour

Didn't know rxvt and rxvt-unicode were that different. big_smile

Offline

Board footer

Powered by FluxBB