I want to make vim open all files of type *.asm with the syntax set to nasm so I don’t have to type :set syntax=nasm every time I fire up vim.
I’m sure there’s something I can put in my .vimrc file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Add this to your vimrc file
Anytime a buffer read or creates a new file with the extension
.asmit will format it with thenasmfile syntaxauis short forautocmdyou can find out more by using:h au