Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed this project using Vundle, as suggested in the installation instructions. However, I don't get syntax highlighting in .info files, and CTRL-N autocompleting only completes based on e.g. function names in the current file. Also, if I introduce an obvious syntax error into e.g. the filetype.vim that comes with the plugin, Vim doesn't complain. In short, I don't think the plugin is being loaded!
Here's my .vimrc: as you can see, I've got two bundles managed by Vundle; this is a good test of Vundle generally, as command-t works fine, so it should all be OK.
" To get command-t to work - see below
:let mapleader = "-"
" Recommended by Drupal vimrc project
set nocompatible
filetype plugin on
" Vundle config
" This line recommended by Vundle but could it be conflicting with the above?
" filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Vundles
Bundle 'gmarik/vundle'
" My bundles here
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'git://drupalcode.org/project/vimrc.git', {'rtp': 'bundle/vim-plugin-for-drupal/'}
Any ideas?
Comments
Comment #1
jp.stacey CreditAttribution: jp.stacey commented(Sorry, originally thought this issue was to do with the subdirectory structure; changing the title to something more suitable.)
Comment #2
jp.stacey CreditAttribution: jp.stacey commentedInterestingly, running "set syntax=drini" on a .info file sets the syntax fine. So vim just isn't autoloading e.g. the filetype.vim?
Comment #3
jp.stacey CreditAttribution: jp.stacey commentedA completely clean reinstall of Vundle (following the new instructions on how to enable it), and then using that to install this project, seems to have fixed this bug, so closing on that basis.