avr-vim


Ⅰ. 插件描述

avr-vim is a small set of scripts that extracts information from the avr-libc header files to create a Vim syntax file.

Ⅱ. 基本信息

创建日期:  2009-04-22
使用用户:  1
Github星:  3
插件作者:  Trannie Carter

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'nottwo/avr-vim-speak-now'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'nottwo/avr-vim-speak-now'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'nottwo/avr-vim-speak-now'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/nottwo/avr-vim

Ⅳ. 文档说明

avr-vim is a small set of scripts that extracts information from the
avr-libc header files to create a Vim syntax file.

Depending on where your avr-libc include directory is, you may need to
modify the INCLUDES_DIR variable in the Makefile.

make all will generate a new syntax file from the current avr-libc
installation.

The scripts create three AVR-related Vim syntax groups from #defines in
the avr-libc header files:

  • AVR_ISR for AVR interrupt vectors linked to the Macro syntax group
  • AVR_function for #defines that act like functions linked to the
    Function syntax group
  • AVR_define for all other #defines linked to the Define syntax group

Your color scheme will hopefully do something sensible with those, but
you can of course customize the highlight for them yourself.

Installation

This repository is a https://github.com/tpope/vim-pathogen

  1. With Pathogen installed, you can easily install avr-vim:
cd ~/.vim/bundle
git clone git://github.com/nottwo/avr-vim.git

avr-vim ships with a Vim syntax file for avr-libc, but you should
regenerate it for the version of avr-libc you are working with.

Known deficiencies

Only #defines are extracted, so actual library functions such as the
standard library _P variant functions are currently missing.

Future improvements

Break out syntax files for individual parts. If you use a peripheral
name that is not present for the declared device, the coloring will show
it.

添加新评论