Markdown is a file format popular with programmers.
The default Vim Settings in Linux, however, do not support syntax highlighting in markdown format.
Here’s how to set up markdown files to enjoy syntax highlighting in VIm.
Start by installing vim’s plug-in management tool:
vim-pathogen
Its source code address:
Github.com/tpope/vim-p…
First create two folders under ~/.vim:
mkdir -p ~/.vim/autoload ~/.vim/bundle
Then download ViM plug-in management tool ViM-Pathogen:
Curl – LSso ~ / vim/autoload/pathogen. The vim tpo. PE/pathogen. Vi…
Add three lines to ~/.vimrc:
execute pathogen#infect()
syntax on
filetype plugin indent on
After rebooting Vim, markdown highlighting is now supported!
For more of Jerry’s original articles, please follow the public account “Wang Zixi “: