Jump to content

Recommended Posts

Posted

I feel a bit stoopid asking this (I'm new around here), but module class files have a .module extension. Which is a bit annoying as it's a .php file and it stuffs up my editor. To save having to remember how to map extensions in Vim is this required?

  • Like 1
Posted
8 hours ago, Robin S said:

You can also name your files ModuleName.module.php if you like.

So blindingly obvious/likely that I completely failed to try it ☺️

8 hours ago, netcarver said:

Try adding...


au BufRead,BufNewFile *.module set filetype=php

at the end of your .vimrc file and re-launch vim.

Cool - thanks for encouraging my laziness. I'll go and give that a try!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...