popup_it


Ⅰ. 插件描述

a easy config auto complete popup

Ⅱ. 基本信息

创建日期:  2009-03-14
使用用户:  2
Github星:  1
插件作者:  777 us

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

a easy config auto complete popup plugin

"             You can put a user auto popup table in you .vimrc like this:
"             let useTable[filetype] = [[auto_exec_complete1, key_word], ...]
"
"             This is a example for c file.
"             let usrTable = {}
"             let usrTable["c"] = [
"                         ["<c-x><c-o>",'k.','k->',
"                         'gtk_k{2,}','GTK_k{1,}','Gtkk{1,}',
"                         'g_k{2,}', 'G_k{1,}'],
"                         ["<c-n>",'k{3,}'],
"                         ]
"             When you type . -> gtk_(>2char) GTK_(>1char) Gtk_(>1char)
"             g_(>2char) G_(>1char) than <c-x><c-o> exec.
"             When you type >3char <c-n> exec.

Blow is default auto popup table
"defTable: {{{1
let s:defTable = {}
let s:defTable["*"]    = [
             ["<c-n>",'k{3,}']
            ]
let s:defTable["c"]    = [
             ["<c-x><c-o>",'k.','k->'],
             ["<c-n>",'k{3,}'],
            ]
let s:defTable["tex"]  = [
             ["<c-n>",'\k{2,}','([|{).*k{2,}'],
            ]
let s:defTable["html"] = [
             ["<c-x><c-o>",'<','</','<.*s+k','<.*k+s*="k'],
            ]

添加新评论