vimdb 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,359 @@
1
+ 'aleph' 'al' ASCII code of the letter Aleph (Hebrew)
2
+ 'allowrevins' 'ari' allow CTRL-_ in Insert and Command-line mode
3
+ 'altkeymap' 'akm' for default second language (Farsi/Hebrew)
4
+ 'ambiwidth' 'ambw' what to do with Unicode chars of ambiguous width
5
+ 'antialias' 'anti' Mac OS X: use smooth, antialiased fonts
6
+ 'autochdir' 'acd' change directory to the file in the current window
7
+ 'arabic' 'arab' for Arabic as a default second language
8
+ 'arabicshape' 'arshape' do shaping for Arabic characters
9
+ 'autoindent' 'ai' take indent for new line from previous line
10
+ 'autoread' 'ar' autom. read file when changed outside of Vim
11
+ 'autowrite' 'aw' automatically write file if changed
12
+ 'autowriteall' 'awa' as 'autowrite', but works with more commands
13
+ 'background' 'bg' "dark" or "light", used for highlight colors
14
+ 'backspace' 'bs' how backspace works at start of line
15
+ 'backup' 'bk' keep backup file after overwriting a file
16
+ 'backupcopy' 'bkc' make backup as a copy, don't rename the file
17
+ 'backupdir' 'bdir' list of directories for the backup file
18
+ 'backupext' 'bex' extension used for the backup file
19
+ 'backupskip' 'bsk' no backup for files that match these patterns
20
+ 'balloondelay' 'bdlay' delay in mS before a balloon may pop up
21
+ 'ballooneval' 'beval' switch on balloon evaluation
22
+ 'balloonexpr' 'bexpr' expression to show in balloon
23
+ 'binary' 'bin' read/write/edit file in binary mode
24
+ 'bioskey' 'biosk' MS-DOS: use bios calls for input characters
25
+ 'bomb' prepend a Byte Order Mark to the file
26
+ 'breakat' 'brk' characters that may cause a line break
27
+ 'browsedir' 'bsdir' which directory to start browsing in
28
+ 'bufhidden' 'bh' what to do when buffer is no longer in window
29
+ 'buflisted' 'bl' whether the buffer shows up in the buffer list
30
+ 'buftype' 'bt' special type of buffer
31
+ 'casemap' 'cmp' specifies how case of letters is changed
32
+ 'cdpath' 'cd' list of directories searched with ":cd"
33
+ 'cedit' key used to open the command-line window
34
+ 'charconvert' 'ccv' expression for character encoding conversion
35
+ 'cindent' 'cin' do C program indenting
36
+ 'cinkeys' 'cink' keys that trigger indent when 'cindent' is set
37
+ 'cinoptions' 'cino' how to do indenting when 'cindent' is set
38
+ 'cinwords' 'cinw' words where 'si' and 'cin' add an indent
39
+ 'clipboard' 'cb' use the clipboard as the unnamed register
40
+ 'cmdheight' 'ch' number of lines to use for the command-line
41
+ 'cmdwinheight' 'cwh' height of the command-line window
42
+ 'colorcolumn' 'cc' columns to highlight
43
+ 'columns' 'co' number of columns in the display
44
+ 'comments' 'com' patterns that can start a comment line
45
+ 'commentstring' 'cms' template for comments; used for fold marker
46
+ 'compatible' 'cp' behave Vi-compatible as much as possible
47
+ 'complete' 'cpt' specify how Insert mode completion works
48
+ 'completefunc' 'cfu' function to be used for Insert mode completion
49
+ 'completeopt' 'cot' options for Insert mode completion
50
+ 'concealcursor' 'cocu' whether concealable text is hidden in cursor line
51
+ 'conceallevel' 'cole' whether concealable text is shown or hidden
52
+ 'confirm' 'cf' ask what to do about unsaved/read-only files
53
+ 'conskey' 'consk' get keys directly from console (MS-DOS only)
54
+ 'copyindent' 'ci' make 'autoindent' use existing indent structure
55
+ 'cpoptions' 'cpo' flags for Vi-compatible behavior
56
+ 'cryptmethod' 'cm' type of encryption to use for file writing
57
+ 'cscopepathcomp' 'cspc' how many components of the path to show
58
+ 'cscopeprg' 'csprg' command to execute cscope
59
+ 'cscopequickfix' 'csqf' use quickfix window for cscope results
60
+ 'cscopetag' 'cst' use cscope for tag commands
61
+ 'cscopetagorder' 'csto' determines ":cstag" search order
62
+ 'cscopeverbose' 'csverb' give messages when adding a cscope database
63
+ 'cursorbind' 'crb' move cursor in window as it moves in other windows
64
+ 'cursorcolumn' 'cuc' highlight the screen column of the cursor
65
+ 'cursorline' 'cul' highlight the screen line of the cursor
66
+ 'debug' set to "msg" to see all error messages
67
+ 'define' 'def' pattern to be used to find a macro definition
68
+ 'delcombine' 'deco' delete combining characters on their own
69
+ 'dictionary' 'dict' list of file names used for keyword completion
70
+ 'diff' use diff mode for the current window
71
+ 'diffexpr' 'dex' expression used to obtain a diff file
72
+ 'diffopt' 'dip' options for using diff mode
73
+ 'digraph' 'dg' enable the entering of digraphs in Insert mode
74
+ 'directory' 'dir' list of directory names for the swap file
75
+ 'display' 'dy' list of flags for how to display text
76
+ 'eadirection' 'ead' in which direction 'equalalways' works
77
+ 'edcompatible' 'ed' toggle flags of ":substitute" command
78
+ 'encoding' 'enc' encoding used internally
79
+ 'endofline' 'eol' write <EOL> for last line in file
80
+ 'equalalways' 'ea' windows are automatically made the same size
81
+ 'equalprg' 'ep' external program to use for "=" command
82
+ 'errorbells' 'eb' ring the bell for error messages
83
+ 'errorfile' 'ef' name of the errorfile for the QuickFix mode
84
+ 'errorformat' 'efm' description of the lines in the error file
85
+ 'esckeys' 'ek' recognize function keys in Insert mode
86
+ 'eventignore' 'ei' autocommand events that are ignored
87
+ 'expandtab' 'et' use spaces when <Tab> is inserted
88
+ 'exrc' 'ex' read .vimrc and .exrc in the current directory
89
+ 'fileencoding' 'fenc' file encoding for multi-byte text
90
+ 'fileencodings' 'fencs' automatically detected character encodings
91
+ 'fileformat' 'ff' file format used for file I/O
92
+ 'fileformats' 'ffs' automatically detected values for 'fileformat'
93
+ 'filetype' 'ft' type of file, used for autocommands
94
+ 'fillchars' 'fcs' characters to use for displaying special items
95
+ 'fkmap' 'fk' Farsi keyboard mapping
96
+ 'foldclose' 'fcl' close a fold when the cursor leaves it
97
+ 'foldcolumn' 'fdc' width of the column used to indicate folds
98
+ 'foldenable' 'fen' set to display all folds open
99
+ 'foldexpr' 'fde' expression used when 'foldmethod' is "expr"
100
+ 'foldignore' 'fdi' ignore lines when 'foldmethod' is "indent"
101
+ 'foldlevel' 'fdl' close folds with a level higher than this
102
+ 'foldlevelstart' 'fdls' 'foldlevel' when starting to edit a file
103
+ 'foldmarker' 'fmr' markers used when 'foldmethod' is "marker"
104
+ 'foldmethod' 'fdm' folding type
105
+ 'foldminlines' 'fml' minimum number of lines for a fold to be closed
106
+ 'foldnestmax' 'fdn' maximum fold depth
107
+ 'foldopen' 'fdo' for which commands a fold will be opened
108
+ 'foldtext' 'fdt' expression used to display for a closed fold
109
+ 'formatlistpat' 'flp' pattern used to recognize a list header
110
+ 'formatoptions' 'fo' how automatic formatting is to be done
111
+ 'formatprg' 'fp' name of external program used with "gq" command
112
+ 'formatexpr' 'fex' expression used with "gq" command
113
+ 'fsync' 'fs' whether to invoke fsync() after file write
114
+ 'fullscreen' 'fu' let vim cover the whole screen (MacVim only)
115
+ 'fuoptions' 'fuopt' controls how 'fullscreen' behaves (MacVim only)
116
+ 'gdefault' 'gd' the ":substitute" flag 'g' is default on
117
+ 'grepformat' 'gfm' format of 'grepprg' output
118
+ 'grepprg' 'gp' program to use for ":grep"
119
+ 'guicursor' 'gcr' GUI: settings for cursor shape and blinking
120
+ 'guifont' 'gfn' GUI: Name(s) of font(s) to be used
121
+ 'guifontset' 'gfs' GUI: Names of multi-byte fonts to be used
122
+ 'guifontwide' 'gfw' list of font names for double-wide characters
123
+ 'guiheadroom' 'ghr' GUI: pixels room for window decorations
124
+ 'guioptions' 'go' GUI: Which components and options are used
125
+ 'guipty' GUI: try to use a pseudo-tty for ":!" commands
126
+ 'guitablabel' 'gtl' GUI: custom label for a tab page
127
+ 'guitabtooltip' 'gtt' GUI: custom tooltip for a tab page
128
+ 'helpfile' 'hf' full path name of the main help file
129
+ 'helpheight' 'hh' minimum height of a new help window
130
+ 'helplang' 'hlg' preferred help languages
131
+ 'hidden' 'hid' don't unload buffer when it is |abandon|ed
132
+ 'highlight' 'hl' sets highlighting mode for various occasions
133
+ 'hlsearch' 'hls' highlight matches with last search pattern
134
+ 'history' 'hi' number of command-lines that are remembered
135
+ 'hkmap' 'hk' Hebrew keyboard mapping
136
+ 'hkmapp' 'hkp' phonetic Hebrew keyboard mapping
137
+ 'icon' let Vim set the text of the window icon
138
+ 'iconstring' string to use for the Vim icon text
139
+ 'ignorecase' 'ic' ignore case in search patterns
140
+ 'imactivatekey' 'imak' key that activates the X input method
141
+ 'imcmdline' 'imc' use IM when starting to edit a command line
142
+ 'imdisable' 'imd' do not use the IM in any mode
143
+ 'iminsert' 'imi' use :lmap or IM in Insert mode
144
+ 'imsearch' 'ims' use :lmap or IM when typing a search pattern
145
+ 'include' 'inc' pattern to be used to find an include file
146
+ 'includeexpr' 'inex' expression used to process an include line
147
+ 'incsearch' 'is' highlight match while typing search pattern
148
+ 'indentexpr' 'inde' expression used to obtain the indent of a line
149
+ 'indentkeys' 'indk' keys that trigger indenting with 'indentexpr'
150
+ 'infercase' 'inf' adjust case of match for keyword completion
151
+ 'insertmode' 'im' start the edit of a file in Insert mode
152
+ 'isfname' 'isf' characters included in file names and pathnames
153
+ 'isident' 'isi' characters included in identifiers
154
+ 'iskeyword' 'isk' characters included in keywords
155
+ 'isprint' 'isp' printable characters
156
+ 'joinspaces' 'js' two spaces after a period with a join command
157
+ 'key' encryption key
158
+ 'keymap' 'kmp' name of a keyboard mapping
159
+ 'keymodel' 'km' enable starting/stopping selection with keys
160
+ 'keywordprg' 'kp' program to use for the "K" command
161
+ 'langmap' 'lmap' alphabetic characters for other language mode
162
+ 'langmenu' 'lm' language to be used for the menus
163
+ 'laststatus' 'ls' tells when last window has status lines
164
+ 'lazyredraw' 'lz' don't redraw while executing macros
165
+ 'linebreak' 'lbr' wrap long lines at a blank
166
+ 'lines' number of lines in the display
167
+ 'linespace' 'lsp' number of pixel lines to use between characters
168
+ 'lisp' automatic indenting for Lisp
169
+ 'lispwords' 'lw' words that change how lisp indenting works
170
+ 'list' show <Tab> and <EOL>
171
+ 'listchars' 'lcs' characters for displaying in list mode
172
+ 'loadplugins' 'lpl' load plugin scripts when starting up
173
+ 'macatsui' Mac GUI: use ATSUI text drawing
174
+ 'macmeta' 'mmta' use option as meta key (MacVim GUI only)
175
+ 'magic' changes special characters in search patterns
176
+ 'makeef' 'mef' name of the errorfile for ":make"
177
+ 'makeprg' 'mp' program to use for the ":make" command
178
+ 'matchpairs' 'mps' pairs of characters that "%" can match
179
+ 'matchtime' 'mat' tenths of a second to show matching paren
180
+ 'maxcombine' 'mco' maximum nr of combining characters displayed
181
+ 'maxfuncdepth' 'mfd' maximum recursive depth for user functions
182
+ 'maxmapdepth' 'mmd' maximum recursive depth for mapping
183
+ 'maxmem' 'mm' maximum memory (in Kbyte) used for one buffer
184
+ 'maxmempattern' 'mmp' maximum memory (in Kbyte) used for pattern search
185
+ 'maxmemtot' 'mmt' maximum memory (in Kbyte) used for all buffers
186
+ 'menuitems' 'mis' maximum number of items in a menu
187
+ 'mkspellmem' 'msm' memory used before |:mkspell| compresses the tree
188
+ 'modeline' 'ml' recognize modelines at start or end of file
189
+ 'modelines' 'mls' number of lines checked for modelines
190
+ 'modifiable' 'ma' changes to the text are not possible
191
+ 'modified' 'mod' buffer has been modified
192
+ 'more' pause listings when the whole screen is filled
193
+ 'mouse' enable the use of mouse clicks
194
+ 'mousefocus' 'mousef' keyboard focus follows the mouse
195
+ 'mousehide' 'mh' hide mouse pointer while typing
196
+ 'mousemodel' 'mousem' changes meaning of mouse buttons
197
+ 'mouseshape' 'mouses' shape of the mouse pointer in different modes
198
+ 'mousetime' 'mouset' max time between mouse double-click
199
+ 'mzquantum' 'mzq' the interval between polls for MzScheme threads
200
+ 'nrformats' 'nf' number formats recognized for CTRL-A command
201
+ 'number' 'nu' print the line number in front of each line
202
+ 'numberwidth' 'nuw' number of columns used for the line number
203
+ 'omnifunc' 'ofu' function for filetype-specific completion
204
+ 'opendevice' 'odev' allow reading/writing devices on MS-Windows
205
+ 'operatorfunc' 'opfunc' function to be called for |g@| operator
206
+ 'osfiletype' 'oft' operating system-specific filetype information
207
+ 'paragraphs' 'para' nroff macros that separate paragraphs
208
+ 'paste' allow pasting text
209
+ 'pastetoggle' 'pt' key code that causes 'paste' to toggle
210
+ 'patchexpr' 'pex' expression used to patch a file
211
+ 'patchmode' 'pm' keep the oldest version of a file
212
+ 'path' 'pa' list of directories searched with "gf" et.al.
213
+ 'preserveindent' 'pi' preserve the indent structure when reindenting
214
+ 'previewheight' 'pvh' height of the preview window
215
+ 'previewwindow' 'pvw' identifies the preview window
216
+ 'printdevice' 'pdev' name of the printer to be used for :hardcopy
217
+ 'printencoding' 'penc' encoding to be used for printing
218
+ 'printexpr' 'pexpr' expression used to print PostScript for :hardcopy
219
+ 'printfont' 'pfn' name of the font to be used for :hardcopy
220
+ 'printheader' 'pheader' format of the header used for :hardcopy
221
+ 'printmbcharset' 'pmbcs' CJK character set to be used for :hardcopy
222
+ 'printmbfont' 'pmbfn' font names to be used for CJK output of :hardcopy
223
+ 'printoptions' 'popt' controls the format of :hardcopy output
224
+ 'pumheight' 'ph' maximum height of the popup menu
225
+ 'quoteescape' 'qe' escape characters used in a string
226
+ 'readonly' 'ro' disallow writing the buffer
227
+ 'redrawtime' 'rdt' timeout for 'hlsearch' and |:match| highlighting
228
+ 'relativenumber' 'rnu' show relative line number in front of each line
229
+ 'remap' allow mappings to work recursively
230
+ 'report' threshold for reporting nr. of lines changed
231
+ 'restorescreen' 'rs' Win32: restore screen when exiting
232
+ 'revins' 'ri' inserting characters will work backwards
233
+ 'rightleft' 'rl' window is right-to-left oriented
234
+ 'rightleftcmd' 'rlc' commands for which editing works right-to-left
235
+ 'ruler' 'ru' show cursor line and column in the status line
236
+ 'rulerformat' 'ruf' custom format for the ruler
237
+ 'runtimepath' 'rtp' list of directories used for runtime files
238
+ 'scroll' 'scr' lines to scroll with CTRL-U and CTRL-D
239
+ 'scrollbind' 'scb' scroll in window as other windows scroll
240
+ 'scrolljump' 'sj' minimum number of lines to scroll
241
+ 'scrolloff' 'so' minimum nr. of lines above and below cursor
242
+ 'scrollopt' 'sbo' how 'scrollbind' should behave
243
+ 'sections' 'sect' nroff macros that separate sections
244
+ 'secure' secure mode for reading .vimrc in current dir
245
+ 'selection' 'sel' what type of selection to use
246
+ 'selectmode' 'slm' when to use Select mode instead of Visual mode
247
+ 'sessionoptions' 'ssop' options for |:mksession|
248
+ 'shell' 'sh' name of shell to use for external commands
249
+ 'shellcmdflag' 'shcf' flag to shell to execute one command
250
+ 'shellpipe' 'sp' string to put output of ":make" in error file
251
+ 'shellquote' 'shq' quote character(s) for around shell command
252
+ 'shellredir' 'srr' string to put output of filter in a temp file
253
+ 'shellslash' 'ssl' use forward slash for shell file names
254
+ 'shelltemp' 'stmp' whether to use a temp file for shell commands
255
+ 'shelltype' 'st' Amiga: influences how to use a shell
256
+ 'shellxquote' 'sxq' like 'shellquote', but include redirection
257
+ 'shiftround' 'sr' round indent to multiple of shiftwidth
258
+ 'shiftwidth' 'sw' number of spaces to use for (auto)indent step
259
+ 'shortmess' 'shm' list of flags, reduce length of messages
260
+ 'shortname' 'sn' non-MS-DOS: Filenames assumed to be 8.3 chars
261
+ 'showbreak' 'sbr' string to use at the start of wrapped lines
262
+ 'showcmd' 'sc' show (partial) command in status line
263
+ 'showfulltag' 'sft' show full tag pattern when completing tag
264
+ 'showmatch' 'sm' briefly jump to matching bracket if insert one
265
+ 'showmode' 'smd' message on status line to show current mode
266
+ 'showtabline' 'stal' tells when the tab pages line is displayed
267
+ 'sidescroll' 'ss' minimum number of columns to scroll horizontal
268
+ 'sidescrolloff' 'siso' min. nr. of columns to left and right of cursor
269
+ 'smartcase' 'scs' no ignore case when pattern has uppercase
270
+ 'smartindent' 'si' smart autoindenting for C programs
271
+ 'smarttab' 'sta' use 'shiftwidth' when inserting <Tab>
272
+ 'softtabstop' 'sts' number of spaces that <Tab> uses while editing
273
+ 'spell' enable spell checking
274
+ 'spellcapcheck' 'spc' pattern to locate end of a sentence
275
+ 'spellfile' 'spf' files where |zg| and |zw| store words
276
+ 'spelllang' 'spl' language(s) to do spell checking for
277
+ 'spellsuggest' 'sps' method(s) used to suggest spelling corrections
278
+ 'splitbelow' 'sb' new window from split is below the current one
279
+ 'splitright' 'spr' new window is put right of the current one
280
+ 'startofline' 'sol' commands move cursor to first non-blank in line
281
+ 'statusline' 'stl' custom format for the status line
282
+ 'suffixes' 'su' suffixes that are ignored with multiple match
283
+ 'suffixesadd' 'sua' suffixes added when searching for a file
284
+ 'swapfile' 'swf' whether to use a swapfile for a buffer
285
+ 'swapsync' 'sws' how to sync the swap file
286
+ 'switchbuf' 'swb' sets behavior when switching to another buffer
287
+ 'synmaxcol' 'smc' maximum column to find syntax items
288
+ 'syntax' 'syn' syntax to be loaded for current buffer
289
+ 'tabstop' 'ts' number of spaces that <Tab> in file uses
290
+ 'tabline' 'tal' custom format for the console tab pages line
291
+ 'tabpagemax' 'tpm' maximum number of tab pages for |-p| and "tab all"
292
+ 'tagbsearch' 'tbs' use binary searching in tags files
293
+ 'taglength' 'tl' number of significant characters for a tag
294
+ 'tagrelative' 'tr' file names in tag file are relative
295
+ 'tags' 'tag' list of file names used by the tag command
296
+ 'tagstack' 'tgst' push tags onto the tag stack
297
+ 'term' name of the terminal
298
+ 'termbidi' 'tbidi' terminal takes care of bi-directionality
299
+ 'termencoding' 'tenc' character encoding used by the terminal
300
+ 'terse' shorten some messages
301
+ 'textauto' 'ta' obsolete, use 'fileformats'
302
+ 'textmode' 'tx' obsolete, use 'fileformat'
303
+ 'textwidth' 'tw' maximum width of text that is being inserted
304
+ 'thesaurus' 'tsr' list of thesaurus files for keyword completion
305
+ 'tildeop' 'top' tilde command "~" behaves like an operator
306
+ 'timeout' 'to' time out on mappings and key codes
307
+ 'timeoutlen' 'tm' time out time in milliseconds
308
+ 'title' let Vim set the title of the window
309
+ 'titlelen' percentage of 'columns' used for window title
310
+ 'titleold' old title, restored when exiting
311
+ 'titlestring' string to use for the Vim window title
312
+ 'toolbar' 'tb' GUI: which items to show in the toolbar
313
+ 'toolbariconsize' 'tbis' size of the toolbar icons (MacVim and GTK 2 only)
314
+ 'transparency' 'transp' transparency of the GUI window (MacVim only)
315
+ 'ttimeout' time out on mappings
316
+ 'ttimeoutlen' 'ttm' time out time for key codes in milliseconds
317
+ 'ttybuiltin' 'tbi' use built-in termcap before external termcap
318
+ 'ttyfast' 'tf' indicates a fast terminal connection
319
+ 'ttymouse' 'ttym' type of mouse codes generated
320
+ 'ttyscroll' 'tsl' maximum number of lines for a scroll
321
+ 'ttytype' 'tty' alias for 'term'
322
+ 'undodir' 'udir' where to store undo files
323
+ 'undofile' 'udf' save undo information in a file
324
+ 'undolevels' 'ul' maximum number of changes that can be undone
325
+ 'undoreload' 'ur' max nr of lines to save for undo on a buffer reload
326
+ 'updatecount' 'uc' after this many characters flush swap file
327
+ 'updatetime' 'ut' after this many milliseconds flush swap file
328
+ 'verbose' 'vbs' give informative messages
329
+ 'verbosefile' 'vfile' file to write messages in
330
+ 'viewdir' 'vdir' directory where to store files with :mkview
331
+ 'viewoptions' 'vop' specifies what to save for :mkview
332
+ 'viminfo' 'vi' use .viminfo file upon startup and exiting
333
+ 'virtualedit' 've' when to use virtual editing
334
+ 'visualbell' 'vb' use visual bell instead of beeping
335
+ 'warn' warn for shell command when buffer was changed
336
+ 'weirdinvert' 'wiv' for terminals that have weird inversion method
337
+ 'whichwrap' 'ww' allow specified keys to cross line boundaries
338
+ 'wildchar' 'wc' command-line character for wildcard expansion
339
+ 'wildcharm' 'wcm' like 'wildchar' but also works when mapped
340
+ 'wildignore' 'wig' files matching these patterns are not completed
341
+ 'wildignorecase' 'wic' ignore case when completing file names
342
+ 'wildmenu' 'wmnu' use menu for command line completion
343
+ 'wildmode' 'wim' mode for 'wildchar' command-line expansion
344
+ 'wildoptions' 'wop' specifies how command line completion is done
345
+ 'winaltkeys' 'wak' when the windows system handles ALT keys
346
+ 'window' 'wi' nr of lines to scroll for CTRL-F and CTRL-B
347
+ 'winheight' 'wh' minimum number of lines for the current window
348
+ 'winfixheight' 'wfh' keep window height when opening/closing windows
349
+ 'winfixwidth' 'wfw' keep window width when opening/closing windows
350
+ 'winminheight' 'wmh' minimum number of lines for any window
351
+ 'winminwidth' 'wmw' minimal number of columns for any window
352
+ 'winwidth' 'wiw' minimal number of columns for current window
353
+ 'wrap' long lines wrap and continue on the next line
354
+ 'wrapmargin' 'wm' chars from the right where wrapping starts
355
+ 'wrapscan' 'ws' searches wrap around the end of the file
356
+ 'write' writing to a file is allowed
357
+ 'writeany' 'wa' write to file with no need for "!" override
358
+ 'writebackup' 'wb' make a backup before overwriting a file
359
+ 'writedelay' 'wd' delay this many msec for each char (for debug)
@@ -0,0 +1,26 @@
1
+ gem 'minitest' unless ENV['NO_RUBYGEMS']
2
+ require 'minitest/autorun'
3
+ require 'vimdb'
4
+ require 'open3'
5
+ require 'fileutils'
6
+
7
+ ENV['VIMDB_RC'] = File.dirname(__FILE__) + '/.vimdbrc'
8
+ ENV['VIMDB_DB'] = File.dirname(__FILE__) + '/vimdb.pstore'
9
+ ENV['VIMDB_FIXTURE_DIR'] = File.dirname(__FILE__) + '/fixtures'
10
+
11
+ module TestHelpers
12
+ attr_reader :stdout, :stderr, :process
13
+
14
+ def vimdb(*args)
15
+ args.unshift File.dirname(__FILE__) + '/../bin/vimdb'
16
+ args.unshift({'RUBYLIB' => "#{File.dirname(__FILE__)}/../lib:" +
17
+ ENV['RUBYLIB']})
18
+ @stdout, @stderr, @process = Open3.capture3(*args)
19
+ end
20
+ end
21
+
22
+ class MiniTest::Unit::TestCase
23
+ include TestHelpers
24
+ end
25
+
26
+ MiniTest::Unit.after_tests { FileUtils.rm_f(ENV['VIMDB_DB']) }
@@ -0,0 +1,80 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/helper')
2
+
3
+ describe "vimdb keys" do
4
+ it "lists all keys by default" do
5
+ vimdb 'keys'
6
+ stdout.must_match /903 rows/
7
+ end
8
+
9
+ it 'searches :key field by default' do
10
+ vimdb 'keys', 'g#'
11
+ stdout.must_match /1 row/
12
+ end
13
+
14
+ it "with --field option searches another field" do
15
+ vimdb 'keys', 'L-z' ,'-f=desc'
16
+ stdout.must_match /0 rows/
17
+ end
18
+
19
+ it "with --reverse_sort option reverse sorts field" do
20
+ vimdb 'keys', '-R'
21
+ stdout.must_match /gq.*'\]/m
22
+ end
23
+
24
+ it "with --regexp option converts search to regexp" do
25
+ vimdb 'keys', '^C-', '-r'
26
+ stdout.wont_match /0 rows/
27
+ stdout.must_match /C-a.*C-z/m
28
+ end
29
+
30
+ it "with --ignore-case option ignores case" do
31
+ vimdb 'keys', 'Q:', '-i'
32
+ stdout.must_match /q:.*1 row/m
33
+ end
34
+
35
+ it 'with --mode option ANDs mode to search' do
36
+ vimdb 'keys', 'gm', '-m=n'
37
+ stdout.must_match /1 row/
38
+ end
39
+
40
+ describe "edge cases" do
41
+ it "converts control key to C-" do
42
+ vimdb 'keys', 'C-z'
43
+ stdout.wont_match /0 rows/
44
+ stdout.must_match /C-z/
45
+ end
46
+
47
+ it "converts escape key to E-" do
48
+ vimdb 'keys', 'E-x'
49
+ stdout.wont_match /0 rows/
50
+ stdout.must_match /E-x/
51
+ end
52
+
53
+ it 'converts leader key to L-' do
54
+ vimdb 'keys', 'L-z'
55
+ stdout.must_match /1 row/
56
+ end
57
+
58
+ it 'searches non-alphabetic characters' do
59
+ vimdb 'keys', '!'
60
+ stdout.must_match /!\{filter\}/
61
+ end
62
+
63
+ it "lists plugin keys with plugin name" do
64
+ vimdb 'keys'
65
+ stdout.must_match /command-t plugin/
66
+ end
67
+
68
+ it 'lists user-generated keys' do
69
+ vimdb 'keys', 'L-w'
70
+ stdout.must_include <<-STR.sub(/^\s+/, '')
71
+ | L-w | nvso | user | :call OpenURL()<CR> |
72
+ STR
73
+ end
74
+
75
+ it "doesn't list Plug keys" do
76
+ vimdb 'keys', 'Plug'
77
+ stdout.must_match /0 rows/
78
+ end
79
+ end
80
+ end