Sure: )I will remeber that next time I post something.
I'v solved the problem. My runtimepath is wrong.
I updated vim to 7.0 using apt-get, but left the old vimrc unchanged.
I checked the vimrc and replaced /usr/share/vim/vim63 to
/usr/share/vim/vim70,
It is OK now.
Thank you All: )
A.J.M
A.J.Mechelynck wrote:
> /etc/vim/vimrc is a strange location for a system vimrc
It is a very intuitive location. In Debian all system-wide
configuration files are in /etc//
> I know just enough Chinese to understand that 大 on the fourth line
> means "big", so I can guess that that fourth line pr
wangxu wrote:
Why don't I have the syntax highlighting when editing files like *.sh
*.xml,etc?
After commands like "syntax on",still nothing happened.
below is my /etc/vim/vimrc,what else should I do to turn the syntax
highlighting on?
Thanks,
shell.
[...]
The ":scriptnames" command will list a
You are right.my runtimepath is wrong.
I updated vim to 7.0 using apt-get, but left the old vimrc unchanged.
I checked the vimrc and replaced /usr/share/vim/vim63 to
/usr/share/vim/vim70,
It is OK now.
thank you!
Peter Hodge wrote:
--- wangxu <[EMAIL PROTECTED]> wrote:
the results are
Hello,
Also you can use
:set ft? syntax?
to see which filetype has been detected, and which syntax has been activated.
regards,
Peter
--- Xi Juanjie <[EMAIL PROTECTED]> wrote:
> "syntax on" should be ok.
>
> Please use :version to confirm your vim was compiled with "+syntax"
> function a
I checked with :version,it is compiled with the "+syntax",and no "syntax
off" in /etc/vim/vimrc.local or files like that.
I don't know where the syntax files should be,but there are syntax files
in /usr/share/vim/vim70/syntax.
Below is the :version result.
:version
VIM - Vi IMproved 7.0 (2006 May
"syntax on" should be ok.
Please use :version to confirm your vim was compiled with "+syntax"
function and keep the corresponding syntax file in vim runtime folder.
Also to check if there has any "syntax off" in /etc/vim/vimrc.local.
wangxu wrote:
> Why don't I have the syntax highlighting when
Why don't I have the syntax highlighting when editing files like *.sh
*.xml,etc?
After commands like "syntax on",still nothing happened.
below is my /etc/vim/vimrc,what else should I do to turn the syntax
highlighting on?
Thanks,
shell.
set
runtimepath=~/.vim,/etc/vim,/usr/share/vim/vimfiles,/usr