I am currently using VIM version 5.7 running on a HP-UX hp9000s800 workstation. I am running WRQ Reflection for UNIX and Digital Version 10.0 terminal emulation software in VAX VT220 in color mode on a PC running Windows XP Pro.
When I start VIM I want to redefine some c language colors with the highlight commands in the .vimrc startup file, but these commands are ignored at startup. Once I am running, I can type
:.source .vimrc
In my home directory and the highlight commands are processed properly and the colors are seen.
My .vimrc file content is:
set showcmd
set showmatch
set ignorecase
set incsearch
set autowrite
syntax on
set nocompatible
set tabstop=4
set textwidth=132
highlight link cConditional VisualNOS
highlight link cRepeat VisualNOS
highlight link cStatement VisualNOS
highlight link cLabel VisualNOS
highlight link cStructure VisualNOS
highlight link cStorageClass VisualNOS
The 6 highlight commands will not work at VIM invocation time.
Why does this not work at startup as having to type the “:.source .vimrc” command every time I want to edit a file is counterproductive?
Regards
Ken Schmitt
Software Engineer
Toll Global Forwarding, Mira Loma Distribution Center
3355 Dulles Drive, Mira Loma, CA 91752
951-360-8310 x3020 office
951-816-0360 mobile
After VIM x.c is typed starting with the .vimrc file:
After :so .vimrc is typed after VIM invocation, the highlight commands work and if, else, etc are picked up in red, but not at VIM command invocation:
No comments:
Post a Comment