Re: vim filetype detection (was Re: Vim colour syntax)

2007-02-10 Thread Chris Bannister
On Tue, Feb 06, 2007 at 03:27:02AM -0500, Manu Hack wrote:
 I noticed that vim-latexsuite no longer worked with vim 7.x whereas it
 was working with vim 6.x. Filed a bug against vim-latexsuite but no
 reply.
 
 yes, I reported the F5 problem and maybe they are working on it.

Interesting.
If I start a new blank file, e.g. vim test.tex, the .tex is not
recognised, i.e. :TTtab does not show the document class templates.

BUT if put, e.g. \documentclass[a4paper]{article}, as a first line then 
subsequent openings of the file work fine. Also pressing F5, brings up a 
list of tex packages to choose from.

Looks like your bug has been fixed. 

Should reassign my bug to vim, once I figure out how. :-)

-- 
Chris.
==
Don't forget to check that your /etc/apt/sources.lst entries point to 
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: vim filetype detection (was Re: Vim colour syntax)

2007-02-06 Thread Manu Hack

I noticed that vim-latexsuite no longer worked with vim 7.x whereas it
was working with vim 6.x. Filed a bug against vim-latexsuite but no
reply.


yes, I reported the F5 problem and maybe they are working on it.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Vim colour syntax

2007-02-05 Thread Chris Bannister
On Sat, Feb 03, 2007 at 08:53:27PM -0500, Stephen wrote:
 On Sun, Feb 04, 2007 at 12:31:29AM + or thereabouts, Liam O'Toole wrote:
  On Sat, 3 Feb 2007 01:44:18 -0500
  Stephen [EMAIL PROTECTED] wrote:
  
   Hello Friends:
   
   After upgrading to Etch, vim doesn't show colour syntax anymore.
   
   I've checked all the places I can find a vimrc and/or .vimrc,
   ensuring that each has 'syntax on'. Still, I'm not getting syntax
   colouring.
   
   Any ideas?
   
  
  In my case I add the line 'syntax on' to  /etc/vim/vimrc, and it works
  for all users. What happens if you issue the command ':syntax on'
  during a vim session? Does it work then?
 
 Liam, unfortuantely no.

What type of file are you trying to edit? What error message do you get?
Is this with a clean .vimrc file?

-- 
Chris.
==
Don't forget to check that your /etc/apt/sources.lst entries point to 
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-05 Thread breeze50

2007/2/5, Chris Bannister [EMAIL PROTECTED]:

On Sat, Feb 03, 2007 at 08:53:27PM -0500, Stephen wrote:
 On Sun, Feb 04, 2007 at 12:31:29AM + or thereabouts, Liam O'Toole wrote:
  On Sat, 3 Feb 2007 01:44:18 -0500
  Stephen [EMAIL PROTECTED] wrote:
 
   Hello Friends:
  
   After upgrading to Etch, vim doesn't show colour syntax anymore.
  
   I've checked all the places I can find a vimrc and/or .vimrc,
   ensuring that each has 'syntax on'. Still, I'm not getting syntax
   colouring.
  
   Any ideas?
  
 
  In my case I add the line 'syntax on' to  /etc/vim/vimrc, and it works
  for all users. What happens if you issue the command ':syntax on'
  during a vim session? Does it work then?

 Liam, unfortuantely no.

What type of file are you trying to edit? What error message do you get?
Is this with a clean .vimrc file?

--
Chris.
==
Don't forget to check that your /etc/apt/sources.lst entries point to
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



I think the version you installed is vim-tiny, it don't include
[syntax] function.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Vim colour syntax

2007-02-05 Thread Stephen
On Mon, Feb 05, 2007 at 09:28:06PM +1300 or thereabouts, Chris Bannister wrote:

Hi Chris:

 What type of file are you trying to edit? What error message do you get?
 Is this with a clean .vimrc file?

Yes, the skeleton sample from the install, and I've been trying this primarily
on *.php files, but anything from my ~/.muttrc isn't showing colour syntax, all
of which were OK prior to my upgrade.

 Don't forget to check that your /etc/apt/sources.lst entries point to 
 etch and not testing, otherwise you may end up with a broken system once
 etch goes stable.

nod Absolutely, but of course nothing to do with this vim issue I'm having.

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
ROMEO:  Courage, man; the hurt cannot be much.
MERCUTIO:   No, 'tis not so deep as a well, nor so wide
as a church-door; but 'tis enough, 'twill serve.
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-05 Thread Stephen
On Mon, Feb 05, 2007 at 04:21:16PM +0800 or thereabouts, breeze50 wrote:

 I think the version you installed is vim-tiny, it don't include
 [syntax] function.

Actually no, but I would have agreed with you earlier on in this thread, when I
installed vim-full. I guess you haven't bothered reading the entire thread.

You're not accurate regarding vim-tiny, you'll notice that it's capable of
colour syntax highlighting;

:/etc/apt# aptitude show vim-tiny

Package: vim-tiny
New: yes
State: not installed
Version: 1:7.0-122+1
Priority: important
Section: editors
Maintainer: Debian VIM Maintainers [EMAIL PROTECTED]
Uncompressed Size: 1069k
Depends: vim-common (= 1:7.0-122+1), libc6 (= 2.3.6-6), libncurses5 
(= 5.4-5)
Provides: editor
Description: Vi IMproved - enhanced vi editor - compact version

Vim is an almost compatible version of the UNIX editor Vi.
Many new features have been added: multi level undo, syntax
highlighting, command line history, on-line help, filename
completion, block operations, folding, Unicode support, etc.

 This package contains a minimal version of vim compiled with no
 GUI and a small subset of features in order to keep small the
 package size. This package does not depend on the vim-runtime
 package, but installing it you will get its additional benefits
 (online documentation, plugins, ...).

So, perhaps the vim-full isn't what I needed, according to some earlier in the
thread. Seems like vim-tiny will do all that I need it for, without all the
bloat for the GUI which I don't use.

Thanks anyways.
-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
There's small choice in rotten apples.
-- William Shakespeare, The Taming of the Shrew
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-05 Thread cga2000
On Sun, Feb 04, 2007 at 03:26:42PM EST, Stephen wrote:
 On Sun, Feb 04, 2007 at 12:55:01PM -0500 or thereabouts, Michael Pobega wrote:
   
  I'm not asking for help, I'm offering it. I think the problem is just a 
  Debian based distro thing, because none of them come with vim-full 
  installed by default (As far as I know). vim-full is the package you 
  need to enable the extra things, for example my output from installing 
  vim-full says that I'm missing a few libraries and packages to get vim 
  /fully/ working.
 
 Thanks for your help, it's appreciated, as is the other nice peoples
 volunteering their time on a Sunday !

When else..?  Aren't we supposed to have jobs and be working during the week?

 I didn't have vim-full installed prior, and someone else in the thread had
 posted what they had, (dpkg output) and it was indeed missing from the default
 install/upgrade. However, installing it didn't seem to resolve my colour 
 issue.
 :(

Someone suggested vim-tiny .. At one point I thought you might be
running plain vi .. Hence my questions re compatible .. 

You could check via:

$ alias

.. that vim is not aliased to something else ..

HTH

cga


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-05 Thread Stephen
On Mon, Feb 05, 2007 at 06:35:29PM -0500 or thereabouts, cga2000 wrote:
 On Sun, Feb 04, 2007 at 03:26:42PM EST, Stephen wrote:
  On Sun, Feb 04, 2007 at 12:55:01PM -0500 or thereabouts, Michael Pobega 
  wrote:

   I'm not asking for help, I'm offering it. I think the problem is just a 
   Debian based distro thing, because none of them come with vim-full 
   installed by default (As far as I know). vim-full is the package you 
   need to enable the extra things, for example my output from installing 
   vim-full says that I'm missing a few libraries and packages to get vim 
   /fully/ working.
  
  Thanks for your help, it's appreciated, as is the other nice peoples
  volunteering their time on a Sunday !
 
 When else..?  Aren't we supposed to have jobs and be working during the week?

I don't know, does your job require you to work week days ? Some people work
weekends or nights. shrug 

Did I say something to upset you ? You seemed a little testy at times in this
thread, and confusing respondents, at least once.

Regarding thanking people for their time on a Sunday; It was nice when they
could be doing something else, especially when it was Super Hype Sunday er ...
Super Bowl day in North America, and/or a weekend. Of course it's nice when
help is received at _any time_.

OK ?

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
Rebellion lay in his way, and he found it.
-- William Shakespeare, Henry IV
+


signature.asc
Description: Digital signature


Re: [Solved (sorta)] Vim colour syntax

2007-02-05 Thread Stephen
Update:

Getting a little frustrated, I aptitude purged all my vim files. I then
re-installed 'vim vim-common vim-runtime'. I now have colour syntax
hi-lighting back.

I know it's not the proper way to fix things, but damn, I tried to do it
the right way. grin

Thanks again for the assistance !

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
There is no hunting like the hunting of man, and those who have hunted
armed men long enough and liked it, never care for anything else thereafter.
-- Ernest Hemingway
+


signature.asc
Description: Digital signature


vim filetype detection (was Re: Vim colour syntax)

2007-02-05 Thread Chris Bannister
On Sun, Feb 04, 2007 at 10:45:08PM -0500, Stephen wrote:
  seems autodetection of the filetype is not working (?) 
 
 Yup. I'm surprised that no one else upgrading from Sarge to Etch has
 experienced this either. I had a vanilla Sarge.

I noticed that vim-latexsuite no longer worked with vim 7.x whereas it
was working with vim 6.x. Filed a bug against vim-latexsuite but no
reply.

-- 
Chris.
==
Don't forget to check that your /etc/apt/sources.lst entries point to 
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-04 Thread cga2000
On Sat, Feb 03, 2007 at 08:51:03PM EST, Stephen wrote:
 On Sat, Feb 03, 2007 at 05:32:35PM +0100 or thereabouts, Mathias Brodala 
 wrote:
 
   I've checked all the places I can find a vimrc and/or .vimrc, ensuring 
   that
   each has 'syntax on'. Still, I'm not getting syntax colouring.
   
   apt-get install vim-runtime
   
   I had|have that installed.
  
  Did you try using /usr/share/vim/vim70/vimrc_example.vim as ~/.vimrc, then? 
  If
  it works this way you know that there???s a problem with your config file.
 
 Yes, that was what my ~/.vimrc was based on. AS I mentioned, I had this 
 working
 fine prior to the upgrade to Etch two weeks ago. I don't recall over writing
 anything, but obviously I did. shrug 
 
 I'm baffled, I've searched in the suspect places, but I don't see anything
 obvious, (at least to me).

output of:

$ vim --version

?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 08:15:43AM +0200 or thereabouts, Mehmet Fatih Akbulut 
wrote:
 hi again,

Hi Mehmet:

snip dpkg list

 these are the packages installed on my system related with vim.
 and with the 'vimrc' file that i sent in my previous mail, everything works
 great.

Interesting, I have the same, except vim-full.

 as an advice, check your packages with above command to see if these were
 all installed on your system or not.

Thanks Mehmet.

 if you have not installed all above yet, then install any of missing(s).
 even after that, if vim doesnt work correctly, then something wrong with ur
 system. :)

No kidding. :) I installed the missing package vim-full, still no dice. I'm
totally perplexed on this one.

Thanks for your help Mehmet, and everyone else. I'll keep digging.

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
Whenever the literary German dives into a sentence, that is the last
you are going to see of him until he emerges on the other side of his
Atlantic with his verb in his mouth.
-- Mark Twain A Connecticut Yankee in King Arthur's Court
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-04 Thread Michael Pobega

cga2000 wrote:

On Sat, Feb 03, 2007 at 08:51:03PM EST, Stephen wrote:
  

On Sat, Feb 03, 2007 at 05:32:35PM +0100 or thereabouts, Mathias Brodala wrote:



I've checked all the places I can find a vimrc and/or .vimrc, ensuring that
each has 'syntax on'. Still, I'm not getting syntax colouring.


apt-get install vim-runtime
  

I had|have that installed.


Did you try using /usr/share/vim/vim70/vimrc_example.vim as ~/.vimrc, then? If
it works this way you know that there???s a problem with your config file.
  

Yes, that was what my ~/.vimrc was based on. AS I mentioned, I had this working
fine prior to the upgrade to Etch two weeks ago. I don't recall over writing
anything, but obviously I did. shrug 


I'm baffled, I've searched in the suspect places, but I don't see anything
obvious, (at least to me).



output of:

$ vim --version

?


  
Actually, just /sudo aptitude install vim-full/. I had the same problem 
on Ubuntu a while back, and it took me a week to figure out how to get 
syntax highlighting to work.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Vim colour syntax

2007-02-04 Thread cga2000
On Sun, Feb 04, 2007 at 10:59:47AM EST, Michael Pobega wrote:
 cga2000 wrote:
 On Sat, Feb 03, 2007 at 08:51:03PM EST, Stephen wrote:

snip

 output of:
 
 $ vim --version
 
 ?

 Actually, just /sudo aptitude install vim-full/. 

???

among other things, vim --version lists the capabilities of the
installed version ..  includes syntax highlighting.

see also :help ve in vim.

Other things the OP could check:

:set compatible?
:set t_Co?
:echo g:colors_name

 I had the same problem on Ubuntu a while back, and it took me a week
 to figure out how to get syntax highlighting to work.

You should have posted on the vim@vim.org mailing list.  

Thanks,

cga








-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-04 Thread Michael Pobega

cga2000 wrote:

On Sun, Feb 04, 2007 at 10:59:47AM EST, Michael Pobega wrote:
  

cga2000 wrote:


On Sat, Feb 03, 2007 at 08:51:03PM EST, Stephen wrote:
  


snip

  

output of:

$ vim --version

?
  


  
Actually, just /sudo aptitude install vim-full. 



???

among other things, vim --version lists the capabilities of the
installed version ..  includes syntax highlighting.

see also :help ve in vim.

Other things the OP could check:

:set compatible?
:set t_Co?
:echo g:colors_name

  
vim-full is the package I needed to get vim syntax coloring working. I'm 
just suggesting the OP try to install it and see if it works, especially 
considering it /is/ on the Debian repositories.

I had the same problem on Ubuntu a while back, and it took me a week
to figure out how to get syntax highlighting to work.



You should have posted on the vim@vim.org mailing list.  


Thanks,

cga



  
I'm not asking for help, I'm offering it. I think the problem is just a 
Debian based distro thing, because none of them come with vim-full 
installed by default (As far as I know). vim-full is the package you 
need to enable the extra things, for example my output from installing 
vim-full says that I'm missing a few libraries and packages to get vim 
/fully/ working.


/[EMAIL PROTECTED]:~$ sudo aptitude install vim-full*
Password:
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
*The following NEW packages will be automatically installed:
 libruby1.8 vim-gui-common vim-runtime
The following NEW packages will be installed:
 libruby1.8 vim-full vim-gui-common vim-runtime*
0 packages upgraded, *4 newly installed*, 0 to remove and 0 not upgraded./


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Vim colour syntax

2007-02-04 Thread cga2000
On Sun, Feb 04, 2007 at 12:55:01PM EST, Michael Pobega wrote:
 cga2000 wrote:

snip

 You should have posted on the vim@vim.org mailing list.  

snip

 I'm not asking for help, I'm offering it. 

I thought the OP had already tried the vim-full fix.

 I think the problem is just a Debian based distro thing, because none
 of them come with vim-full installed by default (As far as I know).

I was suggesting a different approach -- ie. ask the vim list where you
will quickly be provided with info as to the various options you have
as to how you can diagnose the problem.  

Thanks,

cga


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 09:58:08AM -0500 or thereabouts, cga2000 wrote:
 On Sat, Feb 03, 2007 at 08:51:03PM EST, Stephen wrote:
 
  I'm baffled, I've searched in the suspect places, but I don't see anything
  obvious, (at least to me).
 
 output of:
 
 $ vim --version

OK cga2000, you asked for copious output grin ;

VIM - Vi IMproved 7.0 (2006 May 7, compiled Oct 10 2006 00:48:23)
Included patches: 1-122 Compiled by [EMAIL PROTECTED] Big version
with GTK2-GNOME GUI.  Features included (+) or not (-): +arabic

+autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent

+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments +cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs

+dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi

+file_in_path +find_in_path +folding -footer +fork() +gettext

-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap +menu +mksession

+modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme

+netbeans_intg -osfiletype +path_extra +perl +postscript +printer

-profile +python +quickfix +reltime +rightleft +ruby +scrollbind +signs

+smartindent -sniff +statusline -sun_workshop +syntax +tag_binary

+tag_old_static -tag_any_white +tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit

+visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows

+writebackup +X11 -xfontset +xim +xsmp_interact +xterm_clipboard

-xterm_save system vimrc file: $VIM/vimrc user vimrc file:
$HOME/.vimrc user exrc file: $HOME/.exrc system gvimrc file:
$VIM/gvimrc user gvimrc file: $HOME/.gvimrc system menu file:
$VIMRUNTIME/menu.vim fall-back for $VIM: /usr/share/vim

Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK

-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12   -DORBIT2=1 -pthread
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/libxml2 -O2 -g -Wall-D_REENTRANT -D_GNU_SOURCE

-DTHREADS_HAVE_PIDS -DDEBIAN  -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE
-I/usr/include/python2.4 -pthread -I/usr/include/tcl8.4  -D_REENTRANT=1
-D_THREAD_SAFE=1 -D_LARGEFILE64_SOURCE=1
-I/usr/lib/ruby/1.8/i486-linux Linking: gcc -rdynamic
-Wl,-export-dynamic  -Wl,-E   -L/usr/local/lib -o vim   -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lfontconfig

-lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
-lgnomeui-2 -lbonoboui-2 -lgnome-keyring -lxml2 -lgnomecanvas-2
-lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lfontconfig

-lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes
-lpango-1.0 -lcairo -lgnomevfs-2 -lbonobo-2 -lgconf-2 -lgobject-2.0
-lbonobo-activation -lORBit-2 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0

-lXt -lncurses -lgpm   -Wl,-E  -L/usr/local/lib
/usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE

-lperl -L/usr/lib/python2.4/config -lpython2.4 -lutil -Xlinker

-export-dynamic -L/usr/lib -ltcl8.4 -lieee -lruby1.8 -lm

Thanks.
-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
The Priest's grey nimbus in a niche where he dressed discreetly.
I will not sleep here tonight. Home also I cannot go.
A voice, sweetened and 

Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 12:12:38PM -0500 or thereabouts, cga2000 wrote:

 Other things the OP could check:

OK I'm trying the following on a *.php file.

 :set compatible?

nocompatible

 :set t_Co?

t_Co=8

 :echo g:colors_name

Two errors.

E121: Undefined variable: g:colors_name

E15: Invalid expression: g:colors_name

Thanks for your time.

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
The secret source of humor is not joy but sorrow; there is no humor in Heaven.
-- Mark Twain
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 12:55:01PM -0500 or thereabouts, Michael Pobega wrote:
  
 I'm not asking for help, I'm offering it. I think the problem is just a 
 Debian based distro thing, because none of them come with vim-full 
 installed by default (As far as I know). vim-full is the package you 
 need to enable the extra things, for example my output from installing 
 vim-full says that I'm missing a few libraries and packages to get vim 
 /fully/ working.

Thanks for your help, it's appreciated, as is the other nice peoples
volunteering their time on a Sunday !

I didn't have vim-full installed prior, and someone else in the thread had
posted what they had, (dpkg output) and it was indeed missing from the default
install/upgrade. However, installing it didn't seem to resolve my colour issue.
:(

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
It usually takes more than three weeks to prepare a good impromptu speech.
-- Mark Twain
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 01:10:53PM -0500 or thereabouts, cga2000 wrote:

 I thought the OP had already tried the vim-full fix.

I did/had.

[ ...]

 I was suggesting a different approach -- ie. ask the vim list where you
 will quickly be provided with info as to the various options you have
 as to how you can diagnose the problem.  

You know; I thought of that originally. I figured since I had this working
before, (in Sarge) and it only became an issue after the Etch upgrade, that it
was essentially a Debian problem. Therefore I've posted here. I suppose you're
right that posting on the vim list would be useful, however I should exhaust
the thread here first, methinks -- Better than having two conversations in
different places.

Cheers,
-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
Reader, suppose you were an idiot.  And suppose you were a member of
Congress.  But I repeat myself.
-- Mark Twain
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-04 Thread cga2000
On Sun, Feb 04, 2007 at 03:20:25PM EST, Stephen wrote:
 On Sun, Feb 04, 2007 at 12:12:38PM -0500 or thereabouts, cga2000 wrote:
 
  Other things the OP could check:
 
 OK I'm trying the following on a *.php file.
 
  :set compatible?
 
 nocompatible

looks ok -- vim has a bare vi mode that does not support fancy stuff
like syntax hilighting

  :set t_Co?
 
 t_Co=8

I assume that when you say syntax highlighting is not working you're
not seeing any colors, right?

t_Co is the number of supported colors .. I have it set at 256.

  :echo g:colors_name
 
 Two errors.
 
 E121: Undefined variable: g:colors_name
 
 E15: Invalid expression: g:colors_name

That may be of interest .. vim supports colorschemes -- ie. themes ..
But it could very well be that the variable is unset and the
colorscheme defaults to a ... well, default value..

In vim, you could try:

:colorscheme

.. followed by a TAB (completion) and vim should prompt you with the
available colorschemes. See what happens when you set the colorscheme
to whatever comes with the default install..

 Thanks for your time.

As mentioned earlier, if you're really stuck there are some very
knowledgeable folks on the vim ML ..  They should be able to help

Thanks,

cga


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 07:42:28PM -0500 or thereabouts, cga2000 wrote:

[ ...]

 In vim, you could try:
 
 :colorscheme

That didn't produce anything.

I'm been playing around with this on my own a bit. When I ':syntax enable' I'm
returned;

Error detected while processing /usr/share/vim/vim70/syntax/syntax.vim:
line   42:
E216: No such group or event: filetypedetect BufRead

So visiting '/usr/share/vim/vim70/syntax/syntax.vim' the lines from 42
and immediately above are;

 Execute the syntax autocommands for the each buffer.
 If the filetype wasn't detected yet, do that now.
 Always do the syntaxset autocommands, for buffers where the 'filetype'
 already was set manually (e.g., help buffers).
doautoall syntaxset FileType
if !s:did_ft
  doautoall filetypedetect BufRead

Anyone have any ideas, regarding this specific error in terms of colour syntax
not showing?

Update:

Actually, I just commented it out. No difference (other than no error). I guess
I'll ask on a specialized list.

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
At once it struck me what quality went to form a man of achievement,
especially in literature, and which Shakespeare possessed so enormously
-- I mean negative capability, that is, when a man is capable of being
in uncertainties, mysteries, doubts, without any irritable reaching
after fact and reason.
-- John Keats
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-04 Thread cga2000
On Sun, Feb 04, 2007 at 08:54:18PM EST, Stephen wrote:
 On Sun, Feb 04, 2007 at 07:42:28PM -0500 or thereabouts, cga2000 wrote:
 
 [ ...]
 
  In vim, you could try:
  
  :colorscheme
 
 That didn't produce anything.

I meant :colorscheme +TAB .. not :colorscheme + ENTER

But that could very well be the case .. I don't have a bare bones vim
to check.

 I'm been playing around with this on my own a bit. When I ':syntax enable' I'm
 returned;
   
   Error detected while processing /usr/share/vim/vim70/syntax/syntax.vim:
   line   42:
   E216: No such group or event: filetypedetect BufRead
 
 So visiting '/usr/share/vim/vim70/syntax/syntax.vim' the lines from 42
 and immediately above are;
 
Execute the syntax autocommands for the each buffer.
If the filetype wasn't detected yet, do that now.
Always do the syntaxset autocommands, for buffers where the 'filetype'
already was set manually (e.g., help buffers).
   doautoall syntaxset FileType
   if !s:did_ft
 doautoall filetypedetect BufRead
 
 Anyone have any ideas, regarding this specific error in terms of colour syntax
 not showing?

seems autodetection of the filetype is not working (?) 

assuming you use the bash shell, you could try editing ~/.bashrc and
issue a:

:set ft=sh

.. see what happens.

:h filetype

Also check out:

:h :verbose

.. see if this helps.

 Update:
 
 Actually, I just commented it out. No difference (other than no error). I 
 guess
 I'll ask on a specialized list.

I definitely recommend this approach.  

Make sure you describe the actual symptoms -- rather than a vague not
working ..

What kind of file are you editing?

Did you try different types -- C .. Perl .. Python .. bash .. html ..
vim's help files .. etc.  ??

The folks on the vim list may also want to know what terminal you are
using (xterm ..  rxvt..) .. or is this happening with gvim?

Anyway .. HTH .. and best of luck.

cga



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-04 Thread Stephen
On Sun, Feb 04, 2007 at 09:56:26PM -0500 or thereabouts, cga2000 wrote:
 On Sun, Feb 04, 2007 at 08:54:18PM EST, Stephen wrote:

[ ...]

  That didn't produce anything.
 
 I meant :colorscheme +TAB .. not :colorscheme + ENTER

Yup that's what I did.

 But that could very well be the case .. I don't have a bare bones vim
 to check.

snip mostly verbose output

  Anyone have any ideas, regarding this specific error in terms of colour 
  syntax
  not showing?
 
 seems autodetection of the filetype is not working (?) 

Yup. I'm surprised that no one else upgrading from Sarge to Etch has
experienced this either. I had a vanilla Sarge.

[ ...]

  Actually, I just commented it out. No difference (other than no error). I 
  guess
  I'll ask on a specialized list.
 
 I definitely recommend this approach.  
 
 Make sure you describe the actual symptoms -- rather than a vague not
 working ..

Of course. ;) 

Again thanks for your and everyone elses efforts !

snip

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
F.S. Fitzgerald to Hemingway:
Ernest, the rich are different from us.
Hemingway:
Yes.  They have more money.
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-03 Thread Gerard Robin

On Sat, Feb 03, 2007 at 01:44:18AM -0500, Stephen wrote:

From: Stephen [EMAIL PROTECTED]
To: debian debian-user@lists.debian.org
Subject: Vim colour syntax

After upgrading to Etch, vim doesn't show colour syntax anymore.


I've checked all the places I can find a vimrc and/or .vimrc, ensuring that
each has 'syntax on'. Still, I'm not getting syntax colouring.


apt-get install vim-runtime
hth
--
Gérard



Re: Vim colour syntax

2007-02-03 Thread Stephen
On Sat, Feb 03, 2007 at 09:30:26AM +0100 or thereabouts, Gerard Robin wrote:

 On Sat, Feb 03, 2007 at 01:44:18AM -0500, Stephen wrote:
From: Stephen [EMAIL PROTECTED]

 After upgrading to Etch, vim doesn't show colour syntax anymore.

I've checked all the places I can find a vimrc and/or .vimrc, ensuring that
each has 'syntax on'. Still, I'm not getting syntax colouring.

Hello Gerard:

Thanks for the reply.

 apt-get install vim-runtime

I had|have that installed.

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
Whoever has lived long enough to find out what life is, knows how deep a debt
of gratitude we owe to Adam, the first great benefactor of our race.  He
brought death into the world.
-- Mark Twain, Pudd'nhead Wilson's Calendar
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-03 Thread Mathias Brodala
Hello Stephen.

Stephen, 03.02.2007 16:56:
 On Sat, Feb 03, 2007 at 09:30:26AM +0100 or thereabouts, Gerard Robin wrote:
 
 On Sat, Feb 03, 2007 at 01:44:18AM -0500, Stephen wrote:
 From: Stephen [EMAIL PROTECTED]
 
 After upgrading to Etch, vim doesn't show colour syntax anymore.
 
 I've checked all the places I can find a vimrc and/or .vimrc, ensuring that
 each has 'syntax on'. Still, I'm not getting syntax colouring.
 
 apt-get install vim-runtime
 
 I had|have that installed.

Did you try using /usr/share/vim/vim70/vimrc_example.vim as ~/.vimrc, then? If
it works this way you know that there’s a problem with your config file.


Regards, Mathias

-- 
debian/rules



signature.asc
Description: OpenPGP digital signature


Re: Vim colour syntax

2007-02-03 Thread Mehmet Fatih Akbulut

put the attached file in your home directory as .vimrc
it contains a lot of useful options (syntax highlight, line numbers, cursor
position ... etc) for vim.

On 2/3/07, Stephen [EMAIL PROTECTED] wrote:


Hello Friends:

After upgrading to Etch, vim doesn't show colour syntax anymore.

I've checked all the places I can find a vimrc and/or .vimrc, ensuring
that
each has 'syntax on'. Still, I'm not getting syntax colouring.

Any ideas?

--
Regards
Stephen A.




--
MFA


vimrc
Description: Binary data


Re: Vim colour syntax

2007-02-03 Thread Liam O'Toole
On Sat, 3 Feb 2007 01:44:18 -0500
Stephen [EMAIL PROTECTED] wrote:

 Hello Friends:
 
 After upgrading to Etch, vim doesn't show colour syntax anymore.
 
 I've checked all the places I can find a vimrc and/or .vimrc,
 ensuring that each has 'syntax on'. Still, I'm not getting syntax
 colouring.
 
 Any ideas?
 

In my case I add the line 'syntax on' to  /etc/vim/vimrc, and it works
for all users. What happens if you issue the command ':syntax on'
during a vim session? Does it work then?

-- 

Liam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Vim colour syntax

2007-02-03 Thread Stephen
On Sat, Feb 03, 2007 at 05:32:35PM +0100 or thereabouts, Mathias Brodala wrote:

  I've checked all the places I can find a vimrc and/or .vimrc, ensuring 
  that
  each has 'syntax on'. Still, I'm not getting syntax colouring.
  
  apt-get install vim-runtime
  
  I had|have that installed.
 
 Did you try using /usr/share/vim/vim70/vimrc_example.vim as ~/.vimrc, then? If
 it works this way you know that there???s a problem with your config file.

Yes, that was what my ~/.vimrc was based on. AS I mentioned, I had this working
fine prior to the upgrade to Etch two weeks ago. I don't recall over writing
anything, but obviously I did. shrug 

I'm baffled, I've searched in the suspect places, but I don't see anything
obvious, (at least to me).

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-03 Thread Stephen
On Sun, Feb 04, 2007 at 12:31:29AM + or thereabouts, Liam O'Toole wrote:
 On Sat, 3 Feb 2007 01:44:18 -0500
 Stephen [EMAIL PROTECTED] wrote:
 
  Hello Friends:
  
  After upgrading to Etch, vim doesn't show colour syntax anymore.
  
  I've checked all the places I can find a vimrc and/or .vimrc,
  ensuring that each has 'syntax on'. Still, I'm not getting syntax
  colouring.
  
  Any ideas?
  
 
 In my case I add the line 'syntax on' to  /etc/vim/vimrc, and it works
 for all users. What happens if you issue the command ':syntax on'
 during a vim session? Does it work then?

Liam, unfortuantely no.

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
My dear People.
My dear Bagginses and Boffins, and my dear Tooks and Brandybucks,
and Grubbs, and Chubbs, and Burrowses, and Hornblowers, and Bolgers,
Bracegirdles, Goodbodies, Brockhouses and Proudfoots.  Also my good
Sackville Bagginses that I welcome back at last to Bag End.  Today is my
one hundred and eleventh birthday: I am eleventy-one today!
-- J. R. R. Tolkien
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-03 Thread Stephen
On Sun, Feb 04, 2007 at 12:58:22AM +0200 or thereabouts, Mehmet Fatih Akbulut 
wrote:
 put the attached file in your home directory as .vimrc
 it contains a lot of useful options (syntax highlight, line numbers, cursor
 position ... etc) for vim.

Mehmet:

Thanks. I tried it out, still no colour syntax. Weird.

I'm beginning to think that some syntax configuration files are missing,
because when I attempt ':syntax-on', returns No syntax items defined in this
buffer. 

-- 
Regards 
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
When I was younger, I could remember anything, whether it had happened
or not; but my faculties are decaying now and soon I shall be so I
cannot remember any but the things that never happened.  It is sad to
go to pieces like this but we all have to do it.
-- Mark Twain
+


signature.asc
Description: Digital signature


Re: Vim colour syntax

2007-02-03 Thread Mehmet Fatih Akbulut

hi again,

[~] dpkg -l vim* | grep ii
ii  vim-common 7.0-164+3  Vi IMproved - Common files
ii  vim-full   7.0-164+3  Vi IMproved - enhanced vi editor - full
fled
ii  vim-gui-common 7.0-164+3  Vi IMproved - Common GUI files
ii  vim-runtime7.0-164+3  Vi IMproved - Runtime files
ii  vim-tiny   7.0-164+3  Vi IMproved - enhanced vi editor - compact
v

these are the packages installed on my system related with vim.
and with the 'vimrc' file that i sent in my previous mail, everything works
great.

as an advice, check your packages with above command to see if these were
all installed on your system or not.

if you have not installed all above yet, then install any of missing(s).
even after that, if vim doesnt work correctly, then something wrong with ur
system. :)

On 2/4/07, Stephen [EMAIL PROTECTED] wrote:


On Sun, Feb 04, 2007 at 12:58:22AM +0200 or thereabouts, Mehmet Fatih
Akbulut wrote:
 put the attached file in your home directory as .vimrc
 it contains a lot of useful options (syntax highlight, line numbers,
cursor
 position ... etc) for vim.

Mehmet:

Thanks. I tried it out, still no colour syntax. Weird.

I'm beginning to think that some syntax configuration files are missing,
because when I attempt ':syntax-on', returns No syntax items defined in
this
buffer.

--
Regards
Stephen A.



--
MFA


Vim colour syntax

2007-02-02 Thread Stephen
Hello Friends:

After upgrading to Etch, vim doesn't show colour syntax anymore.

I've checked all the places I can find a vimrc and/or .vimrc, ensuring that
each has 'syntax on'. Still, I'm not getting syntax colouring.

Any ideas?

-- 
Regards
Stephen A.
   
Encrypted/Signed e-mail accepted (GPG or PGP) -- Key ID: 978BA045
+
Every cloud engenders not a storm.
-- William Shakespeare, Henry VI
+


signature.asc
Description: Digital signature