Ⅰ. 插件描述
vim syntax highlighting for dasm & dasm16Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'pksunkara/vim-dasm'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'pksunkara/vim-dasm'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'pksunkara/vim-dasm'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/pksunkara/vim-dasm
Ⅳ. 文档说明
This project adds [DASM] syntax higlight support to the vim editor.
(Upto date with dcpu v1.7)
Install from a Zipball
This is the quickest way to get things running.
Packages (don't use the Download buttons.)
- Extract the archive into
~/.vim/:unzip -od ~/.vim vim-dasm-HASH.zip
These steps are also used to update the plugin.
Install with Pathogen
Since this plugin has rolling versions based on git commits, using pathogen and
git is the preferred way to install. The plugin ends up contained in its own
directory and updates are just a git pull away.
- Install tpope's [pathogen] into
~/.vim/autoload/and add this line to your
vimrc:
call pathogen#infect()
To get the all the features of this plugin, make sure you also have a
`filetype plugin indent on` line in there.
Create and change into
~/.vim/bundle/:$ mkdir ~/.vim/bundle $ cd ~/.vim/bundleMake a clone of the
vim-dasmrepository:$ git clone https://github.com/pksunkara/vim-dasm.git
Updating
Change into
~/.vim/bundle/vim-dasm/:$ cd ~/.vim/bundle/vim-dasmPull in the latest changes:
$ git pull
Tune Vim for DASM
Changing these core settings can make vim more DASM friendly.
Two-space indentation
To get standard two-space indentation in DASM files, add this line to
your vimrc:
au BufNewFile,BufReadPost *.dasm,*.dasm16 setl shiftwidth=2 expandtab