- Ensure there's a - syntaxdirectory in the personal vim directory.- mkdir -p ~/.vim/syntax
- Download the markdown syntax file and put it in this directory (e.g. - markdown.vim).
- Affect the - markdownfiletype to- *.mdwnfiles and avoid long lines (in- ~/.vimrc).- " Help autodetection augroup filetypedetect au! BufRead,BufNewFile *.mdwn setfiletype markdown augroup END " Limit the line length for this mode autocmd FileType markdown set tw=80
- Enjoy.