sniphelpers.vim


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2017-02-20
使用用户:  2
Github星:  0
插件作者:  Dorian Karter

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# SnipHelpers

An assortment of helper functions for use in Vim snippets and other VimScripts

Included Helpers

CurrentBufferPath() - file path for the current buffer

CurrentBufferFileName() - file name for the current buffer (-path)

CurrentBufferFileNameNoExt() - file name (-ext, -path) for the current buffer

CurrentBufferFileNameExt() - file extension (-name, -path) for the current buffer

CurrentBufferFileNameToBumpyCase() - hello_word.ex -> HelloWorld (only for snake case for now)

Installation

Using Vim Plug:

Plug `dkarter/sniphelpers.vim`

Save, Source and Run :PlugInstall

License

MIT

添加新评论