Public bug reported:

The scripts from vim-puppet are installed to `/usr/share/vim/addons`
which doesn't appear to be used by the current vim distributed with
Ubuntu 14.04.  The net effect is that installing the vim-puppet package
seems to do nothing when you edit Puppet scripts.

Here is an example site.pp file:

file { '/etc/motd':
  contents => 'Hello, world!',
}

To reproduce:

1. Run "vim site.pp"

Expected behavior:

Syntax highlighting works. Running ":set filetype?" reveals that the
filetype is "puppet".

Observed behavior:

Syntax highlighting does not work. Running ":set filetype?" shows there
is no filetype set. On some files, some other script detects the
filetype as "conf".

If I run "vim site.pp" and then ":scriptnames" this is what I get:

  1: /usr/share/vim/vimrc
  2: /usr/share/vim/vim74/debian.vim
  3: /usr/share/vim/vim74/syntax/syntax.vim
  4: /usr/share/vim/vim74/syntax/synload.vim
  5: /usr/share/vim/vim74/syntax/syncolor.vim
  6: /usr/share/vim/vim74/filetype.vim
  7: ~/.vimrc
  8: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
  9: /usr/share/vim/vim74/plugin/gzip.vim
 10: /usr/share/vim/vim74/plugin/matchparen.vim
 11: /usr/share/vim/vim74/plugin/netrwPlugin.vim
 12: /usr/share/vim/vim74/plugin/rrhelper.vim
 13: /usr/share/vim/vim74/plugin/spellfile.vim
 14: /usr/share/vim/vim74/plugin/tarPlugin.vim
 15: /usr/share/vim/vim74/plugin/tohtml.vim
 16: /usr/share/vim/vim74/plugin/vimballPlugin.vim
 17: /usr/share/vim/vim74/plugin/zipPlugin.vim
 18: /usr/share/vim/vim74/scripts.vim

Since most of these scripts are installed into /usr/share/vim/vim74 I
guessed the files are just in the wrong place. I linked each of the
installed "puppet.vim" files into their corresponding subdirectory in
`vim74/`. This gets the expected behavior for me.

This is what I get after running "vim site.pp" and then ":scriptnames"
after doing this.

  1: /usr/share/vim/vimrc
  2: /usr/share/vim/vim74/debian.vim
  3: /usr/share/vim/vim74/syntax/syntax.vim
  4: /usr/share/vim/vim74/syntax/synload.vim
  5: /usr/share/vim/vim74/syntax/syncolor.vim
  6: /usr/share/vim/vim74/filetype.vim
  7: /usr/share/vim/vim74/ftdetect/puppet.vim
  8: ~/.vimrc
  9: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
 10: /usr/share/vim/vim74/plugin/gzip.vim
 11: /usr/share/vim/vim74/plugin/matchparen.vim
 12: /usr/share/vim/vim74/plugin/netrwPlugin.vim
 13: /usr/share/vim/vim74/plugin/rrhelper.vim
 14: /usr/share/vim/vim74/plugin/spellfile.vim
 15: /usr/share/vim/vim74/plugin/tarPlugin.vim
 16: /usr/share/vim/vim74/plugin/tohtml.vim
 17: /usr/share/vim/vim74/plugin/vimballPlugin.vim
 18: /usr/share/vim/vim74/plugin/zipPlugin.vim
 19: /usr/share/vim/vim74/scripts.vim
 20: /usr/share/vim/vim74/syntax/puppet.vim

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: vim-puppet 3.4.3-1
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Nov  8 12:28:14 2014
InstallationDate: Installed on 2014-04-29 (193 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitecture: all
SourcePackage: puppet
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: puppet (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to puppet in Ubuntu.
https://bugs.launchpad.net/bugs/1390771

Title:
  vim-puppet syntax highlighting scripts are not effective

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/puppet/+bug/1390771/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to