Vim users can enable Magpie syntax highlighting by downloading and configuring the Magpie Vim syntax using the following steps. Magpie syntax will be automatically highlighted for .magpie files.
Prerequisites
Vim can be downloaded here. Vim is included with most UNIX-like systems, including MacOS.
Create vim syntax configuration directories if they do not already exist:
mkdir -p ~/.vim/syntax mkdir -p ~/.vim/ftdetect
Install Magpie Syntax Highlighting
Copy the
syntax/magpie.vimandftdetect/magpie.vimfiles from the Silectis vim-magpie Github repository to your~/.vimconfiguration directory. For example, usingwget:wget https://raw.githubusercontent.com/Silectis/vim-magpie/master/syntax/magpie.vim -O ~/.vim/syntax/magpie.vim wget https://raw.githubusercontent.com/Silectis/vim-magpie/master/ftdetect/magpie.vim -O ~/.vim/ftdetect/magpie.vim
Syntax highlighting can now be enabled for
.magpiefiles using the:syntax oncommand. Optionally, you can turn on syntax highlighting globally by adding the following line to your~/.vimrcfile:syntax on