thepurpleblob Posted October 30, 2018 Share Posted October 30, 2018 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? 1 Link to comment Share on other sites More sharing options...
netcarver Posted October 30, 2018 Share Posted October 30, 2018 Try adding... au BufRead,BufNewFile *.module set filetype=php at the end of your .vimrc file and re-launch vim. 3 Link to comment Share on other sites More sharing options...
Robin S Posted October 30, 2018 Share Posted October 30, 2018 You can also name your files ModuleName.module.php if you like. 5 Link to comment Share on other sites More sharing options...
thepurpleblob Posted October 31, 2018 Author Share Posted October 31, 2018 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now