anwolib


Ⅰ. 插件描述

Yet another vim library

Ⅱ. 基本信息

创建日期:  2011-11-08
使用用户:  3
Github星:  1
插件作者:  Andy Wokula

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Library to support (my) posts on the vim_use mailing list.

Documentation: check comments in the source code

FILES IN THE ARCHIVE

autoloadnwolib.vim  (stand-alone)
autoloadnwogvmap.vim  (included for cmds.vim)
plugincmds.vim  (cmds frontend)
autoloadcmds.vim  (cmds implementation)

FUNCTIONS / COMMANDS

autoloadnwolib.vim
nwo#lib#Avail(varname)
nwo#lib#BG(varname, ...)
nwo#lib#CmdlineWidth()
nwo#lib#CollEscape(str)
nwo#lib#ExpandTabs(line, ...)
nwo#lib#ExpandTabs_Mbyte(line, ...)
nwo#lib#ExtendUniq(baselist, append, ...)
nwo#lib#FargsList(str)
nwo#lib#FitEcho(str)
nwo#lib#FitStr(str)
nwo#lib#Flatten1(list)
nwo#lib#GetPlaceHolder(str)
nwo#lib#Let(val, expr, ...)
nwo#lib#MagicEscape(pat, ...)
nwo#lib#MenuEscape(entry)
nwo#lib#NotEsc(esc_char)
nwo#lib#PairList(list1, list2)
nwo#lib#ReplEscape(repl, ...)
nwo#lib#Rot13(str)
nwo#lib#SlashEscape(str, ...)
nwo#lib#SoftTabstop(vcol)
nwo#lib#SpacesToTabs(line, ...)
nwo#lib#SpacesToTabs_Mbyte(line, ...)
nwo#lib#Split1(str)
nwo#lib#Substract(list1, list2)
nwo#lib#TruncFilename(filename, maxlen)
nwo#lib#TruncStr(str, maxlen)
nwo#lib#Uniq(list)

autoloadnwogvmap.vim

plugincmds.vim
:KeepView {cmd}    
:With {setlocal-args} Do {cmd}  
:InFunc[!] {cmd}    
:InFuncCount {cmd}    
:Fsnorm[!] {normal-cmds}    

Yeah, I know, there are dozens of other libraries ...
genutils, vimscript #197 (Hari Krishna Dara)
lh-vim-lib, vimscript #214 (Luc Hermitte), http://code.google.com/p/lh-vim/wiki/lhVimLib
cecutil, vimscript #1066 (DrChip), http://drchip.0sites.net/astronaut/vim/index.html#CECUTIL
tlib, vimscript #1863 (Thomas Link), http://github.com/tomtom/
TOVL, vimscript #1963 (Marc Weber), http://github.com/MarcWeber/theonevimlib
l9, vimscript #3252 (Takeshi Nishida), https://bitbucket.org/ns9tks/vim-l9/
(Tim Pope vimuser #9012, Kana Natsuno vimuser #13595, ...)
etc!!

2011 Nov 08

添加新评论