Vim's Setting for Editing Matlab Files

You should install a plugin named {editing Matlab files in Vim}.

Then add such command to your own .vimrc file

source $VIMRUNTIME/macros/matchit.vim
filetype indent on
autocmd BufEnter *.m compiler mlint
原文地址:https://www.cnblogs.com/lvpengms/p/2521573.html