vim-puppet syntax highlight

767 views
Skip to first unread message

Balasubramaniam Natarajan

unread,
May 16, 2013, 10:27:47 AM5/16/13
to puppet...@googlegroups.com
Hi

I am trying to install vim-puppet for syntax highlight of puppet manifest file.  I first installed vim-puppet and then vim.  Then I ran "vim-addon-manager -w install puppet"  I am still unable to see the colours on site.pp

bala@WheezyMaster:~$ vim-addon-manager
# Name                     User Status  System Status
editexisting                removed       removed
justify                     removed       removed
matchit                     removed       removed
puppet                      installed     installed
bala@WheezyMaster:~$

bala@WheezyMaster:~$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 10 2013 06:46:22)

bala@WheezyMaster:~$ dpkg -l | grep vim
ii  vim                                2:7.3.547-7               i386         Vi IMproved - enhanced vi editor
ii  vim-addon-manager                  0.5.2                     all          manager of addons for the Vim editor
ii  vim-common                         2:7.3.547-7               i386         Vi IMproved - Common files
ii  vim-gnome                          2:7.3.547-7               i386         Vi IMproved - enhanced vi editor - with GNOME2 GUI
ii  vim-gui-common                     2:7.3.547-7               all          Vi IMproved - Common GUI files
ii  vim-puppet                         2.7.18-4                  all          syntax highlighting for puppet manifests in vim
ii  vim-runtime                        2:7.3.547-7               all          Vi IMproved - Runtime files
ii  vim-tiny                           2:7.3.547-7               i386         Vi IMproved - enhanced vi editor - compact version
bala@WheezyMaster:~$


Could you please tell me where am I going wrong ?

--
Regards,
Balasubramaniam Natarajan
www.blog.etutorshop.com

Keith Burdis

unread,
May 16, 2013, 11:13:42 AM5/16/13
to puppet-users
Perhaps try:

$ echo 'syntax on' >> ~/.vimrc

  - Keith


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dennis Benzinger

unread,
May 16, 2013, 10:58:30 AM5/16/13
to puppet...@googlegroups.com
Hello,

is syntax highlighting enabled in Vim?

Try "syntax enable". If this solves the problem you can put it in your
.vimrc.


Best regards,
Dennis Benzinger

On 16.05.2013 16:27, Balasubramaniam Natarajan wrote:
> Hi
>
> I am trying to install vim-puppet for syntax highlight of puppet
> manifest file. I first installed vim-puppet and then vim. Then I ran
> "vim-addon-manager -w install puppet" I am still unable to see the
> colours on site.pp
>
> bala@WheezyMaster:~$ vim-addon-manager
> # Name User Status System Status
> editexisting removed removed
> justify removed removed
> matchit removed removed
> puppet *installed installed*
> bala@WheezyMaster:~$
>
> bala@WheezyMaster:~$ vim --version
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 10 2013 06:46:22)
>
> bala@WheezyMaster:~$ dpkg -l | grep vim
> ii vim 2:7.3.547-7 i386 Vi IMproved - enhanced vi editor
> ii vim-addon-manager 0.5.2 all manager of addons for the Vim editor
> ii vim-common 2:7.3.547-7 i386 Vi IMproved - Common files
> ii vim-gnome 2:7.3.547-7 i386 Vi IMproved - enhanced vi editor - with
> GNOME2 GUI
> ii vim-gui-common 2:7.3.547-7 all Vi IMproved - Common GUI files
> ii vim-puppet 2.7.18-4 all syntax highlighting for puppet manifests in vim
> ii vim-runtime 2:7.3.547-7 all Vi IMproved - Runtime files
> ii vim-tiny 2:7.3.547-7 i386 Vi IMproved - enhanced vi editor - compact
> version
> bala@WheezyMaster:~$
>
>
> Could you please tell me where am I going wrong ?
>
> --
> Regards,
> Balasubramaniam Natarajan
> www.blog.etutorshop.com <http://www.blog.etutorshop.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com.
> To post to this group, send email to puppet...@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


--
Dennis Benzinger
Platform Implementations Engineer
Managed Services

Nymphenburger Stra�e 86
80636 M�nchen, Deutschland
www.hybris.com

Gesch�ftsf�hrer: Ariel F. L�di, Carsten Thoma, Moritz Zimmermann,
Michael Zips
Amtsgericht M�nchen, HRB 124384

Balasubramaniam Natarajan

unread,
May 16, 2013, 12:06:39 PM5/16/13
to puppet...@googlegroups.com



On Thu, May 16, 2013 at 11:13 AM, Keith Burdis <ke...@burdis.org> wrote:
Perhaps try:

$ echo 'syntax on' >> ~/.vimrc

  - Keith


Thanks now it works with either one of 'syntax on' or 'syntax enable'
Reply all
Reply to author
Forward
0 new messages