Message from discussion
snipMate not working
Received: by 10.204.148.22 with SMTP id n22mr51415bkv.0.1350302522465;
Mon, 15 Oct 2012 05:02:02 -0700 (PDT)
X-BeenThere: vim_use@googlegroups.com
Received: by 10.204.9.135 with SMTP id l7ls4700398bkl.4.gmail; Mon, 15 Oct
2012 05:01:47 -0700 (PDT)
Received: by 10.204.127.19 with SMTP id e19mr735775bks.4.1350302507306;
Mon, 15 Oct 2012 05:01:47 -0700 (PDT)
Received: by 10.204.127.19 with SMTP id e19mr735774bks.4.1350302507278;
Mon, 15 Oct 2012 05:01:47 -0700 (PDT)
Return-Path: <ke...@teamprema.co.nz>
Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54])
by gmr-mx.google.com with ESMTPS id y23si295513bkv.2.2012.10.15.05.01.47
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 15 Oct 2012 05:01:47 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.215.54 is neither permitted nor denied by best guess record for domain of ke...@teamprema.co.nz) client-ip=209.85.215.54;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.215.54 is neither permitted nor denied by best guess record for domain of ke...@teamprema.co.nz) smtp.mail=ke...@teamprema.co.nz
Received: by mail-la0-f54.google.com with SMTP id e12so5473380lag.27
for <vim_use@googlegroups.com>; Mon, 15 Oct 2012 05:01:47 -0700 (PDT)
d=google.com; s=20120113;
h=mime-version:x-originating-ip:in-reply-to:references:from:date
:message-id:subject:to:content-type:x-gm-message-state;
bh=TM3hsMgO5TIkqlsCeQs2PcZcE8cdu9Jb1jiOFpNdLAE=;
b=YFWwzJgBHcOmxTcezhgtKqJDFAqJSxoG3zXh7qsqUVLBanIOzVigZ0dEsn6rZbMdCC
PO38kG6LKcI0OWmzlLk2GuNoMZyToD7NqemXz0MQLYAc6TxAeseqPky2TRXj7CjzqECh
TSX6GDZ8baNGTF21U0CCzN6kE10anRM+08Mb1KxUv4oWM1EAuh65Qp5PQPnzYcpZFz5i
311DPQnApq0sn6SAptw6QerRdluk9u1LN1FAL0hC0jwIpaUxakaKgAqE6awAPvOBlMPx
7G/yNhIu2jBBknU93d/D1qXgWugwtYNfIdLDOVDZDK0GUKmifKPzampp2Zu87kD8Nysg
SwWg==
Received: by 10.152.105.103 with SMTP id gl7mr9737722lab.10.1350302506863;
Mon, 15 Oct 2012 05:01:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.112.19.164 with HTTP; Mon, 15 Oct 2012 05:01:26 -0700 (PDT)
X-Originating-IP: [121.98.231.26]
In-Reply-To: <20121008150336.GA4374@phoenix>
References: <4daad6e7-11f5-4363-8f66-d14f11ba25e9@googlegroups.com>
<20121003154906.GA23694@phoenix> <c1e6fa90-0c50-4788-a6a6-1c48e37961eb@googlegroups.com>
<20121008063411.GC3697@phoenix> <c97968b0-361c-4d45-a3c1-af8cb368c8e7@googlegroups.com>
<20121008150336.GA4374@phoenix>
From: Matt Keir <ke...@teamprema.co.nz>
Date: Tue, 16 Oct 2012 01:01:26 +1300
Message-ID: <CANYKVeMpcX4Qz=0CQ4fL0n+8o+4=xGaUu3Ze0EaAM88jQfG...@mail.gmail.com>
Subject: Re: snipMate not working
To: vim_use@googlegroups.com
Content-Type: multipart/alternative; boundary=f46d040714a742ccaf04cc17cdb9
X-Gm-Message-State: ALoCoQlUBbivRFfGuligwpMjRTkfViG7bEX7tMkyRWhP25pZRjvw00130WnLNJyrHSgpExLdUveI
--f46d040714a742ccaf04cc17cdb9
Content-Type: text/plain; charset=ISO-8859-1
Hi Gary
Took your advice and RTFM'D ;-)
Had a look in usr/share/vim/vimrc
'set compatible' was uncommented in there. Not a default setting it seems.
Must have come over from my colleagues PC when we copied Vim over
So when I put 'nocompatible' in .vimrc it over rode this and snipmate worked
funny thing is it didn't work a few days later when I tried to use it again.
So removed nocompatible from .vimrc and commented out set compatible
in usr/share/vim/vimrc and now snipmate works again :)
Thanks for your help
On Tue, Oct 9, 2012 at 4:03 AM, Gary Johnson <garyj...@spocom.com> wrote:
> On 2012-10-08, Mashan wrote:
> > Thanks Gary / Marc / Charles
> >
> > Turns out putting "set nocompatible" into the .vimrc file did the
> > trick (Thanks Marc)
>
> I'm glad that problem has been fixed, but I would be wary of that
> solution for two reasons. First, it shouldn't be necessary. As
> ":help 'compatible' explains,
>
> When a |vimrc| or |gvimrc| file is found while Vim is
> starting up, this option is switched off, and all options
> that have not been modified will be set to the Vim defaults.
>
> So, 'nocompatible' should already have been set by the time your
> ~/.vimrc was read.
>
> Secondly, again from ":help 'compatible',
>
> This is a special kind of option, because when it's set or
> reset, other options are also changed as a side effect.
> CAREFUL: Setting or resetting this option can have a lot of
> unexpected effects: Mappings are interpreted in another way,
> undo behaves differently, etc. If you set this option in
> your vimrc file, you should probably put it at the very
> start.
>
> By putting "set nocompatible" into your ~/.vimrc where you did,
> you've thrown a monkey wrench into your initialization process.
> While it did have the effect of fixing this problem, it may well
> have caused other problems that you haven't discovered yet.
>
> Since: a) this fixes this problem; b) hasn't had any bad
> side-effects yet; and c) I don't know what the real solution is; I'd
> leave your ~/.vimrc as-is. Just be aware that this is a flaky
> solution, may cause other problems, and removing it should be one of
> the first things you do if you have problems in the future.
>
> > This worked on it's own without any of the "filetype" settings,
> > though as you'll see below I put them in anyway as I had heard
> > they were important (possible for other reasons ?)
>
> The ":filetype ident plugin on" and ":syntax on" commands were
> already executed in your /usr/share/vim/vimrc file. That's why you
> didn't need to set them in your ~/.vimrc file. That can be seen in
> the output of :scriptnames that you posted earlier.
>
> > Thanks again for everyone's help
> >
> > Much appreciated
> >
> > contents of .vimrc file :
> >
> > set ts=4
> > set ai
> > set shiftwidth=4
> > syn on
> > set mouse=a
> > au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
> > color evening
> > filetype on
> > set tabpagemax=25
> > set smartindent
> > set showmatch
> > set vb t_vb=
> > set ruler
> > set incsearch
> > set nocompatible
> > au BufRead,BufNewFile *.php set ft=php.html
> > filetype plugin on
> > filetype indent plugin on | syn on
>
> Regards,
> Gary
>
> --
> You received this message from the "vim_use" maillist.
> Do not top-post! Type your reply below the text you are replying to.
> For more information, visit http://www.vim.org/maillist.php
>
--f46d040714a742ccaf04cc17cdb9
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi Gary<div><br></div><div>Took your advice and RTFM'D ;-)</div><div><b=
r></div><div>Had a look in usr/share/vim/vimrc</div><div><br></div><div>=
9;set compatible' was uncommented in there. Not a default setting it se=
ems. Must have come over from my colleagues PC when we copied Vim over</div=
>
<div><br></div><div>So when I put 'nocompatible' in .vimrc it over =
rode this and snipmate worked</div><div><br></div><div>funny thing is it di=
dn't work a few days later when I tried to use it again.</div><div>
<br></div><div>So removed nocompatible from .vimrc and commented out set co=
mpatible in=A0usr/share/vim/vimrc and now snipmate works again :)</div><div=
><br></div><div>Thanks for your help</div><div><br><br><div class=3D"gmail_=
quote">
On Tue, Oct 9, 2012 at 4:03 AM, Gary Johnson <span dir=3D"ltr"><<a href=
=3D"mailto:garyj...@spocom.com" target=3D"_blank">garyj...@spocom.com</a>&g=
t;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0=
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=3D"im">On 2012-10-08, Mashan wrote:<br>
> Thanks Gary / Marc / Charles<br>
><br>
> Turns out putting "set nocompatible" into the .vimrc file di=
d the<br>
> trick (Thanks Marc)<br>
<br>
</div>I'm glad that problem has been fixed, but I would be wary of that=
<br>
solution for two reasons. =A0First, it shouldn't be necessary. =A0As<br=
>
":help 'compatible' explains,<br>
<br>
=A0 =A0 =A0 =A0 When a |vimrc| or |gvimrc| file is found while Vim is<br>
=A0 =A0 =A0 =A0 starting up, this option is switched off, and all options<b=
r>
=A0 =A0 =A0 =A0 that have not been modified will be set to the Vim defaults=
.<br>
<br>
So, 'nocompatible' should already have been set by the time your<br=
>
~/.vimrc was read.<br>
<br>
Secondly, again from ":help 'compatible',<br>
<br>
=A0 =A0 =A0 =A0 This is a special kind of option, because when it's set=
or<br>
=A0 =A0 =A0 =A0 reset, other options are also changed as a side effect.<br>
=A0 =A0 =A0 =A0 CAREFUL: Setting or resetting this option can have a lot of=
<br>
=A0 =A0 =A0 =A0 unexpected effects: Mappings are interpreted in another way=
,<br>
=A0 =A0 =A0 =A0 undo behaves differently, etc. =A0If you set this option in=
<br>
=A0 =A0 =A0 =A0 your vimrc file, you should probably put it at the very<br>
=A0 =A0 =A0 =A0 start.<br>
<br>
By putting "set nocompatible" into your ~/.vimrc where you did,<b=
r>
you've thrown a monkey wrench into your initialization process.<br>
While it did have the effect of fixing this problem, it may well<br>
have caused other problems that you haven't discovered yet.<br>
<br>
Since: a) this fixes this problem; b) hasn't had any bad<br>
side-effects yet; and c) I don't know what the real solution is; I'=
d<br>
leave your ~/.vimrc as-is. =A0Just be aware that this is a flaky<br>
solution, may cause other problems, and removing it should be one of<br>
the first things you do if you have problems in the future.<br>
<div class=3D"im"><br>
> This worked on it's own without any of the "filetype" se=
ttings,<br>
> though as you'll see below I put them in anyway as I had heard<br>
> they were important (possible for other reasons ?)<br>
<br>
</div>The ":filetype ident plugin on" and ":syntax on" =
commands were<br>
already executed in your /usr/share/vim/vimrc file. =A0That's why you<b=
r>
didn't need to set them in your ~/.vimrc file. =A0That can be seen in<b=
r>
the output of :scriptnames that you posted earlier.<br>
<div class=3D"im HOEnZb"><br>
> Thanks again for everyone's help<br>
><br>
> Much appreciated<br>
><br>
> contents of .vimrc file :<br>
><br>
> set ts=3D4<br>
> set ai<br>
> set shiftwidth=3D4<br>
> syn on<br>
> set mouse=3Da<br>
> au BufRead,BufNewFile jquery.*.js set ft=3Djavascript syntax=3Djquery<=
br>
> color evening<br>
> filetype on<br>
> set tabpagemax=3D25<br>
> set smartindent<br>
> set showmatch<br>
> set vb t_vb=3D<br>
> set ruler<br>
> set incsearch<br>
> set nocompatible<br>
> au BufRead,BufNewFile *.php set ft=3Dphp.html<br>
> filetype plugin on<br>
> filetype indent plugin on | syn on<br>
<br>
</div><div class=3D"HOEnZb"><div class=3D"h5">Regards,<br>
Gary<br>
<br>
--<br>
You received this message from the "vim_use" maillist.<br>
Do not top-post! Type your reply below the text you are replying to.<br>
For more information, visit <a href=3D"http://www.vim.org/maillist.php" tar=
get=3D"_blank">http://www.vim.org/maillist.php</a><br>
</div></div></blockquote></div><br></div>
--f46d040714a742ccaf04cc17cdb9--