VUT


Ⅰ. 插件描述

Vim Universal Templates

Ⅱ. 基本信息

创建日期:  2004-09-01
使用用户:  1
Github星:  1
插件作者:  Mikolaj Machowski

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

VUT - Vim Universal Templates are direct continuation
of VHT Script #988. Difference is you can define comment
strings and use editable or library tags in every type of
file (html, xhtml, css, javascript, cpp, tex, vim, etc.).

When migrating from VHT -
HAVE TO CHANGE

  • change name of core file from .htmlmain into .vutmain
  • default comment strings are /, /, script package
      is providing configuration for popular types of files:

    xhtml, html, tex, vim
    

NOT HAVE TO CHANGE

  • extensions of files are still the same (vhl, vht)

Old commands are saved for backwards compatibility but added new set of
commands beginning with VUT or VUL. Note - VH commands may be dropped in
future.

Additional changes:

  • VULupdate/VUTupdate can take name of library as an argument. Example:
    :VULupdate panel.vhl
    This will update contents of LibraryItem panel.vhl regardless of cursor

    1. Superuseful in connection with :argdo family. Argument had be
    2. full path with .vhl extension.
  • added: use ~/Library/ for global library items for VULshow.  
  • fixed: VUTcommit.

添加新评论