Ⅰ. 插件描述
VIM configuration to allow fast and easy z80 coding (maybe specific to the Amstrad CPC)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'cpcsdk/vim-z80-democoding'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'cpcsdk/vim-z80-democoding'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'cpcsdk/vim-z80-democoding'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/cpcsdk/vim-z80-democoding
Ⅳ. 文档说明
Vim configuration for z80 coding.
This repository contains personal and public piece of code.
I do not really remember where I have found the syntax file.
It is adapted to match sjasmplus and vasm, other assemblers should work but some directives may have different names.
The aim of this repository is to provide z80 configuration in order to ease
my development for the Amstrad CPC.
So, syntax highligting, functions and so on can not be of interest in context
different than Amstrad CPC democoding, or even for other people than me.
Anyway, it is public and can be interesting for other people.
Installation
Manual installation
Copy the ftdetect, ftplugin and syntax directories in your .vim directory (~/.vim on Linux)
Automated installation with vim-plugPlug 'cpcsdk/vim-z80-democoding'
Usage
All .src, .asm and .z80 files are automatically detected by the ftdetect file, and the syntax is applied.
There are some functions to easily migrate code from sjasmplus to vasm (which I recommend using, it is a great assembler).