usda-syntax


Ⅰ. 插件描述

Syntax Highlighting for usda(http://openusd.org) files in vim, emacs & sublime.

Ⅱ. 基本信息

创建日期:  2017-12-02
使用用户:  1
Github星:  9
插件作者:  superfunc

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'superfunc/usda-syntax'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'superfunc/usda-syntax'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'superfunc/usda-syntax'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Nothing crazy, basic syntax highlighting in the common editors for the ascii
representation of USD (http://openusd.org) files. Contributors welcome,
especially for anything that isn't vim.

Looking for other editors(VSCode/Atom etc)? Check out https://github.com/vfxpro99/awesome-usd !

emacs

  • Install: Add to emacs load script, launch with <M-X> usda-mode
  • Example:

sublime

  • Install: cp sublime/usda-syntax.yaml <Sublime-Packages-Folder>/usda/usda.sublime-syntax
  • Example:

vim

  • Install: Add the following block to $MYVIMRC, remembering to substitute
  1. real file path in place of <LOCATION>
au BufRead,BufNewFile *.usd set filetype=usda
au BufRead,BufNewFile *.usda set filetype=usda
autocmd FileType usda source <LOCATION>/usda-syntax/vim/usda.vim
  • Example:

Disclaimer(s)

This work is my sole effort and is in no way associated with or sponsored by my current, past, or future employer(s).

添加新评论