How do I set up a default syntax for files that have no extension in vim?
To pick the default syntax for files without an extension, you can create an autocommand that checks if the filename contains a .
, and if not, switches to the desired syntax:
autocmd BufNewFile,BufRead * if expand('%:t') !~ '\.' | set syntax=perl | endif
This one picks perl
as a default syntax, but you can simply use whichever is appropriate.