Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/motemen/vim-guess-abbrev

expand input dynamically http://subtech.g.hatena.ne.jp/motemen/20101215/1292414533
https://github.com/motemen/vim-guess-abbrev

Last synced: about 2 months ago
JSON representation

expand input dynamically http://subtech.g.hatena.ne.jp/motemen/20101215/1292414533

Awesome Lists containing this project

README

        

gabbrev.vim
===========

DESCRIPTION
-----------

gabbrev.vim expands your input dynamically.

For example, it expands your input `SM` to `\language.vim

inoremap gabbrev#i_start()
setlocal completefunc=gabbrev#complete " not necessary

Typing uppercase letters and hitting `` in insertmode will suggest first match. Next type will start full popup completion.

OPTIONS
-------

### `g:gabbrev#abbrev_ch_pattern`

Default: `'[[:alnum:]]'`

Pattern for characters which compose abbreviation (your input).

### `g:gabbrev#keyword_ch_pattern`

Default: `'\k'`

Pattern for characters which compose expanded word.

HOW THIS WORKS
--------------

When called, gabbrev splits your input by uppercase (`/\u`) characters.

'FoBB' -> ['Fo', 'B', 'B']

And fill join them by character patterns

['Fo', 'B', 'B'] -> '\v