Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/motemen/vim-guess-abbrev
- Owner: motemen
- Created: 2010-12-14T13:10:40.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-15T11:54:22.000Z (about 14 years ago)
- Last Synced: 2024-10-15T15:29:36.792Z (3 months ago)
- Language: VimL
- Homepage:
- Size: 93.8 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 necessaryTyping 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