Add this to your vimrc file
au BufRead,BufNewFile *.asm set filetype=nasm
At any time, when the buffer reads or creates a new file with the extension .asm, it will format it with the file syntaxnasm
aushortened for autocmd, you can find out more using:h au
source
share