tskeletons


Ⅰ. 插件描述

Templates, snippets, bits for the tskeleton vim plugin

Ⅱ. 基本信息

创建日期:  2012-02-09
使用用户:  4
Github星:  10
插件作者:  Tom Link

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Skeletons for the tSkeleton vim plugin:
http://www.vim.org/scripts/script.php?script_id=1160

By default, this is the directory where tskeleton searches for skeletons. This directory may contain three types of files:

  1. Manually configured skeletons, loaded from an autocommand. Example: This will load a file plain.txt from this directory when creating new files whose extension is "txt":

    autocmd BufNewFile *.txt TSkeletonSetup plain.txt

  2. Automatically configured skeletons are kept in the "templates" subdirectory. tskeleton will automatically define suitable autocommands for you. The effect of the above example could also be achieved by saving the template as

    ".../templates/text/text #.vim"

  3. "Bits" are skeletons for small portions of code. These are saved in the "bits" subdirectory. Example: The bits for, say, vimscript

    files are kept in ".../bits/vim/"

添加新评论