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.vim
andftdetect/magpie.vim
files from the Silectis vim-magpie Github repository to your~/.vim
configuration 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
.magpie
files using the:syntax on
command. Optionally, you can turn on syntax highlighting globally by adding the following line to your~/.vimrc
file:syntax on