-*eval.txt* For Vim version 7.0aa. Last change: 2005 Sep 29
+*eval.txt* For Vim version 7.0aa. Last change: 2005 Oct 02
VIM REFERENCE MANUAL by Bram Moolenaar
v:register The name of the register supplied to the last normal mode
command. Empty if none were supplied. |getreg()| |setreg()|
+ *v:scrollstart* *scrollstart-variable*
+v:scrollstart String describing the script or function that caused the
+ screen to scroll up. It's only set when it is empty, thus the
+ first reason is remembered. It is set to "Unknown" for a
+ typed command.
+ This can be used to find out why your script causes the
+ hit-enter prompt.
+
*v:servername* *servername-variable*
v:servername The resulting registered |x11-clientserver| name if any.
Read-only.
-*insert.txt* For Vim version 7.0aa. Last change: 2005 Sep 23
+*insert.txt* For Vim version 7.0aa. Last change: 2005 Oct 02
VIM REFERENCE MANUAL by Bram Moolenaar
other contexts unless a double CTRL-X is used.
+INSERT COMPLETION POPUP MENU *ins-completion-menu*
+
+Vim can display the matches in a simplistic popup menu.
+
+The menu is used when:
+- The 'completeopt' option contains "menu".
+- The terminal supports at least 8 colors.
+- There are at least two matches.
+
+While the menu is displayed these keys have a special meaning:
+<CR> and <Enter>: Accept the currently selected match
+<Up>: Select the previous match, as if CTRL-P was used
+<Down>: Select the next match, as if CTRL-N was used
+
+The colors of the menu can be changed with these highlight groups:
+Pmenu normal item |hl-Pmenu|
+PmenuSel selected item |hl-PmenuSel|
+PmenuSbar scrollbar |hl-PmenuSbar|
+PmenuThumb thumb of the scrollbar |hl-PmenuThumb|
+
+
Filetype-specific remarks for omni completion *compl-omni-filetypes*
C *ft-c-omni*
-*options.txt* For Vim version 7.0aa. Last change: 2005 Sep 28
+*options.txt* For Vim version 7.0aa. Last change: 2005 Oct 02
VIM REFERENCE MANUAL by Bram Moolenaar
set completefunc=CompleteMonths
<
+ *'completeopt'* *'cot'*
+'completeopt' 'cot' string (default: "menu")
+ global
+ {not in Vi}
+ Options for Insert mode completion |ins-completion|.
+ Currently the only supported value is:
+
+ menu Use a popup menu to show the possible completions. The
+ menu is only shown when there is more than one match and
+ sufficient colors are available. |ins-completion-menu|
+
+
*'confirm'* *'cf'* *'noconfirm'* *'nocf'*
'confirm' 'cf' boolean (default off)
global
f:Folded,F:FoldColumn,A:DiffAdd,
C:DiffChange,D:DiffDelete,T:DiffText,
>:SignColumn,B:SpellBad,P:SpellCap,
- R:SpellRare,L:SpellLocal")
+ R:SpellRare,L:SpellLocal,
+ +:Pmenu,=:PmenuSel,
+ x:PmenuSbar,X:PmenuThumb")
global
{not in Vi}
This option can be used to set highlighting mode for various
|hl-SpellCap| P word that should start with capital|spell|
|hl-SpellRare| R rare word |spell|
|hl-SpellLocal| L word from other region |spell|
+ |hl-Pmenu| + popup menu normal line
+ |hl-PmenuSel| = popup menu normal line
+ |hl-PmenuSbar| x popup menu scrollbar
+ |hl-PmenuThumb| X popup menu scrollbar thumb
The display modes are:
r reverse (termcap entry "mr" and "me")
-*starting.txt* For Vim version 7.0aa. Last change: 2005 Jun 30
+*starting.txt* For Vim version 7.0aa. Last change: 2005 Oct 02
VIM REFERENCE MANUAL by Bram Moolenaar
4. Load the plugin scripts. *load-plugins*
This does the same as the command: >
- :runtime! plugin/*.vim
+ :runtime! plugin/**/*.vim
< The result is that all directories in the 'runtimepath' option will be
searched for the "plugin" sub-directory and all files ending in ".vim"
- will be sourced (in alphabetical order per directory).
+ will be sourced (in alphabetical order per directory), also in
+ subdirectories.
Loading plugins won't be done when:
- The 'loadplugins' option was reset in a vimrc file.
- The |--noplugin| command line argument is used.
-*syntax.txt* For Vim version 7.0aa. Last change: 2005 Sep 27
+*syntax.txt* For Vim version 7.0aa. Last change: 2005 Oct 02
VIM REFERENCE MANUAL by Bram Moolenaar
doesn't fit at the end of the line).
*hl-Normal*
Normal normal text
+ *hl-Pmenu*
+Pmenu Popup menu: normal item.
+ *hl-PmenuSel*
+PmenuSel Popup menu: selected item.
+ *hl-PmenuSbar*
+PmenuSbar Popup menu: scrollbar.
+ *hl-PmenuThumb*
+PmenuThumb Popup menu: Thumb of the scrollbar.
*hl-Question*
Question |hit-enter| prompt and yes/no questions
*hl-Search*
'compatible' options.txt /*'compatible'*
'complete' options.txt /*'complete'*
'completefunc' options.txt /*'completefunc'*
+'completeopt' options.txt /*'completeopt'*
'confirm' options.txt /*'confirm'*
'consk' options.txt /*'consk'*
'conskey' options.txt /*'conskey'*
'copyindent' options.txt /*'copyindent'*
+'cot' options.txt /*'cot'*
'cp' options.txt /*'cp'*
'cpo' options.txt /*'cpo'*
'cpoptions' options.txt /*'cpoptions'*
hl-MoreMsg syntax.txt /*hl-MoreMsg*
hl-NonText syntax.txt /*hl-NonText*
hl-Normal syntax.txt /*hl-Normal*
+hl-Pmenu syntax.txt /*hl-Pmenu*
+hl-PmenuSbar syntax.txt /*hl-PmenuSbar*
+hl-PmenuSel syntax.txt /*hl-PmenuSel*
+hl-PmenuThumb syntax.txt /*hl-PmenuThumb*
hl-Question syntax.txt /*hl-Question*
hl-Scrollbar syntax.txt /*hl-Scrollbar*
hl-Search syntax.txt /*hl-Search*
inputsave() eval.txt /*inputsave()*
inputsecret() eval.txt /*inputsecret()*
ins-completion insert.txt /*ins-completion*
+ins-completion-menu insert.txt /*ins-completion-menu*
ins-expandtab insert.txt /*ins-expandtab*
ins-reverse rileft.txt /*ins-reverse*
ins-smarttab insert.txt /*ins-smarttab*
scrollbind-quickadj scroll.txt /*scrollbind-quickadj*
scrollbind-relative scroll.txt /*scrollbind-relative*
scrolling scroll.txt /*scrolling*
+scrollstart-variable eval.txt /*scrollstart-variable*
sdl.vim syntax.txt /*sdl.vim*
search() eval.txt /*search()*
search-commands pattern.txt /*search-commands*
v:profiling eval.txt /*v:profiling*
v:progname eval.txt /*v:progname*
v:register eval.txt /*v:register*
+v:scrollstart eval.txt /*v:scrollstart*
v:servername eval.txt /*v:servername*
v:shell_error eval.txt /*v:shell_error*
v:statusmsg eval.txt /*v:statusmsg*
zg spell.txt /*zg*
zh scroll.txt /*zh*
zi fold.txt /*zi*
+zip zip.txt /*zip*
+zip-contents zip.txt /*zip-contents*
+zip-copyright zip.txt /*zip-copyright*
+zip-history zip.txt /*zip-history*
+zip-manual zip.txt /*zip-manual*
+zip-usage zip.txt /*zip-usage*
+zip.txt zip.txt /*zip.txt*
zj fold.txt /*zj*
zk fold.txt /*zk*
zl scroll.txt /*zl*
" You can also use this as a start for your own set of menus.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last Change: 2005 Aug 16
+" Last Change: 2005 Oct 01
" Note that ":an" (short for ":anoremenu") is often used to make a menu work
" in all modes and avoid side effects from mappings defined by the user.
endif
let curcol = col('.')
- let w = spellbadword()
+ let [w, a] = spellbadword()
if col('.') > curcol " don't use word after the cursor
let w = ''
call cursor(0, curcol) " put the cursor back where it was
normal.obj \
ops.obj \
option.obj \
+ popupmenu.obj \
quickfix.obj \
regexp.obj \
screen.obj \
#
# Makefile for VIM on Win32, using Cygnus gcc
-# Last updated by Dan Sharp. Last Change: 2005 Jul 23
+# Last updated by Dan Sharp. Last Change: 2005 Oct 01
#
# Also read INSTALLpc.txt!
#
$(OUTDIR)/os_win32.o \
$(OUTDIR)/os_mswin.o \
$(OUTDIR)/pathdef.o \
+ $(OUTDIR)/popupmenu.o \
$(OUTDIR)/quickfix.o \
$(OUTDIR)/regexp.o \
$(OUTDIR)/screen.o \
ops.c \
option.c \
os_amiga.c \
+ popupmenu.c \
quickfix.c \
regexp.c \
screen.c \
o/ops.o \
o/option.o \
o/os_amiga.o \
+ o/popupmenu.o \
o/quickfix.o \
o/regexp.o \
o/screen.o \
o/os_amiga.o: os_amiga.c $(SYMS) os_amiga.h
+o/popupmenu.o: popupmenu.c $(SYMS)
+
o/quickfix.o: quickfix.c $(SYMS)
o/regexp.o: regexp.c $(SYMS) regexp.h
ops.c \
option.c \
os_amiga.c \
+ popupmenu.c \
quickfix.c \
regexp.c \
screen.c \
obj/ops.o \
obj/option.o \
obj/os_amiga.o \
+ obj/popupmenu.o \
obj/quickfix.o \
obj/regexp.o \
obj/screen.o \
proto/ops.pro \
proto/option.pro \
proto/os_amiga.pro \
+ proto/popupmenu.pro \
proto/quickfix.pro \
proto/regexp.pro \
proto/screen.pro \
obj/os_amiga.o: os_amiga.c
$(CCSYM) $@ os_amiga.c
+obj/popupmenu.o: popupmenu.c
+ $(CCSYM) $@ popupmenu.c
+
obj/quickfix.o: quickfix.c
$(CCSYM) $@ quickfix.c
$(OUTDIR)/os_win32.o \
$(OUTDIR)/os_mswin.o \
$(OUTDIR)/pathdef.o \
+ $(OUTDIR)/popupmenu.o \
$(OUTDIR)/quickfix.o \
$(OUTDIR)/regexp.o \
$(OUTDIR)/screen.o \
:src:option.c ¶
:src:os_mac.c ¶
:src:pty.c ¶
+ :src:popupmenu.c ¶
:src:quickfix.c ¶
:src:regexp.c ¶
:src:screen.c ¶
"{ObjDir}option.c.x" ¶
"{ObjDir}os_mac.c.x" ¶
"{ObjDir}pty.c.x" ¶
+ "{ObjDir}popupmenu.c.x" ¶
"{ObjDir}quickfix.c.x" ¶
"{ObjDir}regexp.c.x" ¶
"{ObjDir}screen.c.x" ¶
"{ObjDir}option.c.x" Ä :src:option.c
"{ObjDir}os_mac.c.x" Ä :src:os_mac.c
"{ObjDir}pty.c.x" Ä :src:pty.c
+"{ObjDir}popupmenu.c.x" Ä :src:popupmenu.c
"{ObjDir}quickfix.c.x" Ä :src:quickfix.c
"{ObjDir}regexp.c.x" Ä :src:regexp.c
"{ObjDir}screen.c.x" Ä :src:screen.c
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
+ :src:proto:quickfix.pro ¶
+ :src:proto:regexp.pro ¶
+ :src:proto:screen.pro ¶
+ :src:proto:search.pro ¶
+ :src:proto:spell.pro ¶
+ :src:proto:syntax.pro ¶
+ :src:proto:tag.pro ¶
+ :src:proto:term.pro ¶
+ :src:proto:termlib.pro ¶
+ :src:proto:ui.pro ¶
+ :src:proto:undo.pro ¶
+ :src:proto:version.pro ¶
+ :src:proto:window.pro ¶
+ :src:proto:if_python.pro ¶
+ :src:proto:if_tcl.pro ¶
+ :src:proto:if_ruby.pro ¶
+ :src:proto:gui.pro ¶
+ :src:proto:pty.pro ¶
+ :src:proto:gui_gtk.pro ¶
+ :src:proto:gui_gtk_x11.pro ¶
+ :src:proto:gui_motif.pro ¶
+ :src:proto:gui_athena.pro ¶
+ :src:proto:gui_mac.pro ¶
+ :src:proto:gui_x11.pro ¶
+ :src:proto:workshop.pro ¶
+ :src:proto:if_perl.pro ¶
+ :src:proto:if_perlsfio.pro
+
+:obj:popupmenu.c.x Ä ¶
+ :src:popupmenu.c ¶
+ :src:vim.h ¶
+ :src:auto:config.h ¶
+ :src:feature.h ¶
+ :src:os_unix.h ¶
+ :src:os_mac.h ¶
+ :src:workshop.h ¶
+ :src:ascii.h ¶
+ :src:keymap.h ¶
+ :src:term.h ¶
+ :src:macros.h ¶
+ :src:structs.h ¶
+ :src:globals.h ¶
+ :src:option.h ¶
+ :src:ex_cmds.h ¶
+ :src:proto.h ¶
+ :src:integration.h ¶
+ :src:wsdebug.h ¶
+ :src:regexp.h ¶
+ :src:gui.h ¶
+ :src:farsi.h ¶
+ :src:proto:os_unix.pro ¶
+ :src:proto:os_mac.pro ¶
+ :src:proto:buffer.pro ¶
+ :src:proto:charset.pro ¶
+ :src:proto:if_cscope.pro ¶
+ :src:proto:diff.pro ¶
+ :src:proto:digraph.pro ¶
+ :src:proto:edit.pro ¶
+ :src:proto:eval.pro ¶
+ :src:proto:ex_cmds.pro ¶
+ :src:proto:ex_cmds2.pro ¶
+ :src:proto:ex_docmd.pro ¶
+ :src:proto:ex_eval.pro ¶
+ :src:proto:ex_getln.pro ¶
+ :src:proto:fileio.pro ¶
+ :src:proto:fold.pro ¶
+ :src:proto:getchar.pro ¶
+ :src:proto:hardcopy.pro ¶
+ :src:proto:hashtable.pro ¶
+ :src:proto:hangulin.pro ¶
+ :src:proto:main.pro ¶
+ :src:proto:mark.pro ¶
+ :src:proto:memfile.pro ¶
+ :src:proto:memline.pro ¶
+ :src:proto:menu.pro ¶
+ :src:proto:message.pro ¶
+ :src:proto:misc1.pro ¶
+ :src:proto:misc2.pro ¶
+ :src:proto:move.pro ¶
+ :src:proto:multibyte.pro ¶
+ :src:proto:normal.pro ¶
+ :src:proto:ops.pro ¶
+ :src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
:src:proto:normal.pro ¶
:src:proto:ops.pro ¶
:src:proto:option.pro ¶
+ :src:proto:popupmenu.pro ¶
:src:proto:quickfix.pro ¶
:src:proto:regexp.pro ¶
:src:proto:screen.pro ¶
normal.o \
ops.o \
option.o \
+ popupmenu.o \
quickfix.o \
regexp.o \
screen.o \
normal.o: normal.c $(INCL)
ops.o: ops.c $(INCL)
option.o: option.c $(INCL)
+popupmenu.o: popupmenu.c $(INCL)
quickfix.o: quickfix.c $(INCL)
regexp.o: regexp.c $(INCL)
screen.o: screen.c $(INCL)
o.ex_docmd o.ex_eval o.ex_getln o.fileio o.fold o.getchar \
o.hardcopy o.hashtable o.main o.mark o.mbyte \
o.memfile o.memline o.menu o.message o.misc1 o.misc2 o.move \
- o.normal o.ops o.option o.quickfix o.regexp o.screen o.search \
+ o.normal o.ops o.option o.popupmenu o.quickfix o.regexp o.screen \
+ o.search \
o.spell o.syntax o.tag o.term o.termlib o.ui o.undo o.version \
o.window o.os_riscos o.swis o.gui o.gui_riscos
o.pty: c.pty
+o.popupmenu: c.popupmenu
+
o.quickfix: c.quickfix
o.regexp: c.regexp
ops.c \
option.c \
os_amiga.c \
+ popupmenu.c \
quickfix.c \
regexp.c \
screen.c \
ops.o \
option.o \
os_amiga.o \
+ popupmenu.o \
quickfix.o \
regexp.o \
screen.o \
proto/ops.pro \
proto/option.pro \
proto/os_amiga.pro \
+ proto/popupmenu.pro \
proto/quickfix.pro \
proto/regexp.pro \
proto/screen.pro \
proto/option.pro: option.c
os_amiga.o: os_amiga.c
proto/os_amiga.pro: os_amiga.c
+popupmenu.o: popupmenu.c
+proto/popupmenu.pro: popupmenu.c
quickfix.o: quickfix.c
proto/quickfix.pro: quickfix.c
regexp.o: regexp.c
$(INTDIR)\os_win16.obj\
$(INTDIR)\os_msdos.obj\
$(INTDIR)\os_mswin.obj\
+ $(INTDIR)\popupmenu.obj\
$(INTDIR)\quickfix.obj\
$(INTDIR)\regexp.obj\
$(INTDIR)\screen.obj\
option.c \
os_unix.c \
auto/pathdef.c \
+ popupmenu.c \
quickfix.c \
regexp.c \
screen.c \
objects/option.o \
objects/os_unix.o \
objects/pathdef.o \
+ objects/popupmenu.o \
objects/quickfix.o \
objects/regexp.o \
objects/screen.o \
ops.pro \
option.pro \
os_unix.pro \
+ popupmenu.pro \
quickfix.pro \
regexp.pro \
screen.pro \
# Generate the converted .mo files separately, it's no problem if this fails.
languages:
@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
+ $(MAKE) language-check; \
cd $(PODIR); \
- CC="$(CC)" $(MAKE) check; \
CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix); \
fi
-@if test -n "$(MAKEMO)" -a -f $(PODIR)/Makefile; then \
cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) converted; \
fi
+# Separate target to check the po files for valitidy, because it depends on
+# ./vim.
+language-check: $(VIMTARGET)
+ cd $(PODIR); $(MAKE) check VIM=../$(VIMTARGET)
+
# Update the *.po files for changes in the sources. Only run manually.
update-po:
cd $(PODIR); CC="$(CC)" $(MAKE) prefix=$(DESTDIR)$(prefix) update-po
objects/pty.o: pty.c
$(CCC) -o $@ pty.c
+objects/popupmenu.o: popupmenu.c
+ $(CCC) -o $@ popupmenu.c
+
objects/quickfix.o: quickfix.c
$(CCC) -o $@ quickfix.c
static int has_compl_option __ARGS((int dict_opt));
static void ins_compl_add_matches __ARGS((int num_matches, char_u **matches, int dir));
static int ins_compl_make_cyclic __ARGS((void));
+static void ins_compl_upd_pum __ARGS((void));
+static void ins_compl_del_pum __ARGS((void));
+static int pum_wanted __ARGS((void));
+static void ins_compl_show_pum __ARGS((void));
static void ins_compl_dictionaries __ARGS((char_u *dict, char_u *pat, int dir, int flags, int thesaurus));
static void ins_compl_free __ARGS((void));
static void ins_compl_clear __ARGS((void));
-static void ins_compl_prep __ARGS((int c));
+static int ins_compl_prep __ARGS((int c));
static buf_T *ins_compl_next_buf __ARGS((buf_T *buf, int flag));
static int ins_compl_get_exp __ARGS((pos_T *ini, int dir));
static void ins_compl_delete __ARGS((void));
#endif
#ifdef FEAT_INS_EXPAND
+ /* When the popup menu is visible cursor keys change the selection. */
+ if (c == K_UP && pum_visible())
+ c = Ctrl_P;
+ if (c == K_DOWN && pum_visible())
+ c = Ctrl_N;
+
/* Prepare for or stop CTRL-X mode. This doesn't do completion, but
* it does fix up the text when finishing completion. */
if (c != K_IGNORE)
- ins_compl_prep(c);
+ {
+ if (ins_compl_prep(c))
+ continue;
+ }
#endif
/* CTRL-\ CTRL-N goes to Normal mode,
} while (match != NULL && match != compl_first_match);
}
+ /* Remove any popup menu before changing the list of matches. */
+ ins_compl_del_pum();
+
/*
* Allocate a new match structure.
* Copy the values to the new match structure.
return count;
}
+static char_u **compl_match_array = NULL;
+static int compl_match_arraysize;
+
+/*
+ * Update the screen and when there is any scrolling remove the popup menu.
+ */
+ static void
+ins_compl_upd_pum()
+{
+ int h;
+
+ if (compl_match_array != NULL)
+ {
+ h = curwin->w_cline_height;
+ update_screen(0);
+ if (h != curwin->w_cline_height)
+ ins_compl_del_pum();
+ }
+}
+
+/*
+ * Remove any popup menu.
+ */
+ static void
+ins_compl_del_pum()
+{
+ if (compl_match_array != NULL)
+ {
+ pum_undisplay();
+ vim_free(compl_match_array);
+ compl_match_array = NULL;
+ }
+}
+
+/*
+ * Return TRUE if the popup menu should be displayed.
+ */
+ static int
+pum_wanted()
+{
+ compl_T *compl;
+ int i;
+
+ /* 'completeopt' must contain "menu" */
+ if (*p_cot == NUL)
+ return FALSE;
+
+ /* The display looks bad on a B&W display. */
+ if (t_colors < 8
+#ifdef FEAT_GUI
+ && !gui.in_use
+#endif
+ )
+ return FALSE;
+
+ /* Don't display the popup menu if there are no matches or there is only
+ * one (ignoring the original text). */
+ compl = compl_first_match;
+ i = 0;
+ do
+ {
+ if (compl == NULL
+ || ((compl->cp_flags & ORIGINAL_TEXT) == 0 && ++i == 2))
+ break;
+ compl = compl->cp_next;
+ } while (compl != compl_first_match);
+
+ return (i >= 2);
+}
+
+/*
+ * Show the popup menu for the list of matches.
+ */
+ static void
+ins_compl_show_pum()
+{
+ compl_T *compl;
+ int i;
+ int cur = -1;
+ colnr_T col;
+
+ if (!pum_wanted())
+ return;
+
+ /* Update the screen before drawing the popup menu over it. */
+ update_screen(0);
+
+ if (compl_match_array == NULL)
+ {
+ /* Need to build the popup menu list. */
+ compl_match_arraysize = 0;
+ compl = compl_first_match;
+ do
+ {
+ if ((compl->cp_flags & ORIGINAL_TEXT) == 0)
+ ++compl_match_arraysize;
+ compl = compl->cp_next;
+ } while (compl != NULL && compl != compl_first_match);
+ compl_match_array = (char_u **)alloc((unsigned)(sizeof(char_u **)
+ * compl_match_arraysize));
+ if (compl_match_array != NULL)
+ {
+ i = 0;
+ compl = compl_first_match;
+ do
+ {
+ if ((compl->cp_flags & ORIGINAL_TEXT) == 0)
+ {
+ if (compl == compl_shown_match)
+ cur = i;
+ compl_match_array[i++] = compl->cp_str;
+ }
+ compl = compl->cp_next;
+ } while (compl != NULL && compl != compl_first_match);
+ }
+ }
+ else
+ {
+ /* popup menu already exists, only need to find the current item.*/
+ i = 0;
+ compl = compl_first_match;
+ do
+ {
+ if ((compl->cp_flags & ORIGINAL_TEXT) == 0)
+ {
+ if (compl == compl_shown_match)
+ {
+ cur = i;
+ break;
+ }
+ ++i;
+ }
+ compl = compl->cp_next;
+ } while (compl != NULL && compl != compl_first_match);
+ }
+
+ if (compl_match_array != NULL)
+ {
+ /* Compute the screen column of the start of the completed text.
+ * Use the cursor to get all wrapping and other settings right. */
+ col = curwin->w_cursor.col;
+ curwin->w_cursor.col = compl_col;
+ validate_cursor_col();
+ pum_display(compl_match_array, compl_match_arraysize, cur,
+ curwin->w_cline_row + W_WINROW(curwin),
+ curwin->w_cline_height,
+ curwin->w_wcol + W_WINCOL(curwin));
+ curwin->w_cursor.col = col;
+ }
+}
+
#define DICT_FIRST (1) /* use just first element in "dict" */
#define DICT_EXACT (2) /* "dict" is the exact name of a file */
/*
if (compl_first_match == NULL)
return;
+
+ ins_compl_del_pum();
+ pum_clear();
+
compl_curr_match = compl_first_match;
do
{
/*
* Prepare for Insert mode completion, or stop it.
* Called just after typing a character in Insert mode.
+ * Returns TRUE when the character is not to be inserted;
*/
- static void
+ static int
ins_compl_prep(c)
int c;
{
char_u *ptr;
int temp;
int want_cindent;
+ int retval = FALSE;
/* Forget any previous 'special' messages if this is actually
* a ^X mode key - bar ^R, in which case we wait to see what it gives us.
/* Ignore end of Select mode mapping */
if (c == K_SELECT)
- return;
+ return retval;
if (ctrl_x_mode == CTRL_X_NOT_DEFINED_YET)
{
auto_format(FALSE, TRUE);
+ /* if the popup menu is displayed hitting Enter means accepting
+ * the selection without inserting anything. */
+ if ((c == CAR || c == K_KENTER || c == NL) && pum_visible())
+ retval = TRUE;
+
ins_compl_free();
compl_started = FALSE;
compl_matches = 0;
compl_cont_status = 0;
compl_cont_mode = 0;
}
+
+ return retval;
}
/*
{
int flags = 0;
- /* ctrl_x_mode == CTRL_X_WHOLE_LINE || word-wise search that has
- * added a word that was at the beginning of the line */
+ /* ctrl_x_mode == CTRL_X_WHOLE_LINE || word-wise search that
+ * has added a word that was at the beginning of the line */
if ( ctrl_x_mode == CTRL_X_WHOLE_LINE
|| (compl_cont_status & CONT_SOL))
found_new_match = search_for_exact_line(ins_buf, pos,
}
}
if (ins_compl_add_infercase(ptr, len,
- ins_buf == curbuf ? NULL : ins_buf->b_sfname,
+ ins_buf == curbuf ? NULL : ins_buf->b_sfname,
dir, flags) != NOTDONE)
{
found_new_match = OK;
p_scs = save_p_scs;
p_ws = save_p_ws;
}
+
/* check if compl_curr_match has changed, (e.g. other type of
* expansion added somenthing) */
- if (compl_curr_match != old_match)
+ if (type != 0 && compl_curr_match != old_match)
found_new_match = OK;
/* break the loop for specialized modes (use 'complete' just for the
* generic ctrl_x_mode == 0) or when we've found a new match */
if ((ctrl_x_mode != 0 && ctrl_x_mode != CTRL_X_WHOLE_LINE)
|| found_new_match != FAIL)
- break;
-
- /* Mark a buffer scanned when it has been scanned completely */
- if (type == 0 || type == CTRL_X_PATH_PATTERNS)
- ins_buf->b_scanned = TRUE;
+ {
+ if (got_int)
+ break;
+ if (pum_wanted() && type != -1)
+ /* Fill the popup menu as soon as possible. */
+ ins_compl_check_keys(0);
+ if ((ctrl_x_mode != 0 && ctrl_x_mode != CTRL_X_WHOLE_LINE)
+ || compl_interrupted)
+ break;
+ compl_started = TRUE;
+ }
+ else
+ {
+ /* Mark a buffer scanned when it has been scanned completely */
+ if (type == 0 || type == CTRL_X_PATH_PATTERNS)
+ ins_buf->b_scanned = TRUE;
- compl_started = FALSE;
+ compl_started = FALSE;
+ }
}
compl_started = TRUE;
compl_pending = TRUE;
if (allow_get_expansion)
{
- num_matches = ins_compl_get_exp(&compl_startpos,
- compl_direction);
+ num_matches = ins_compl_get_exp(&compl_startpos, compl_direction);
if (compl_pending)
{
if (compl_direction == compl_shows_dir)
if (!allow_get_expansion)
{
+ /* may undisplay the popup menu first */
+ ins_compl_upd_pum();
+
/* Display the current match. */
update_screen(0);
+ /* display the updated popup menu */
+ ins_compl_show_pum();
+
/* Delete old text to be replaced, since we're still searching and
* don't want to match ourselves! */
ins_compl_delete();
*/
n = ins_compl_next(TRUE);
+ /* may undisplay the popup menu */
+ ins_compl_upd_pum();
+
if (n > 1) /* all matches have been found */
compl_matches = n;
compl_curr_match = compl_shown_match;
if (match != NULL)
/* go up and assign all numbers which are not assigned
* yet */
- for (match = match->cp_next; match
- && match->cp_number == -1;
+ for (match = match->cp_next;
+ match != NULL && match->cp_number == -1;
match = match->cp_next)
match->cp_number = ++number;
}
}
}
- /* The match should always have a sequnce number now, this is just
- * a safety check. */
+ /* The match should always have a sequence number now, this is
+ * just a safety check. */
if (compl_curr_match->cp_number != -1)
{
/* Space for 10 text chars. + 2x10-digit no.s */
else
msg_clr_cmdline(); /* necessary for "noshowmode" */
+ ins_compl_show_pum();
+
return OK;
}
goto cmdline_not_changed;
case K_VER_SCROLLBAR:
- if (!msg_scrolled)
+ if (msg_scrolled == 0)
{
gui_do_scroll();
redrawcmd();
goto cmdline_not_changed;
case K_HOR_SCROLLBAR:
- if (!msg_scrolled)
+ if (msg_scrolled == 0)
{
gui_do_horiz_scroll();
redrawcmd();
void
compute_cmdrow()
{
- if (exmode_active || msg_scrolled)
+ if (exmode_active || msg_scrolled != 0)
cmdline_row = Rows - 1;
else
cmdline_row = W_WINROW(lastwin) + lastwin->w_height
#endif
p = msg_trunc_attr(IObuff, FALSE, 0);
if (read_stdin || read_buffer || restart_edit != 0
- || (msg_scrolled && !need_wait_return))
+ || (msg_scrolled != 0 && !need_wait_return))
{
/* Need to repeat the message after redrawing when:
* - When reading from stdin (the screen will be cleared next).
ins_horscroll();
else if (State & CMDLINE)
{
- if (!msg_scrolled)
+ if (msg_scrolled == 0)
{
gui_do_horiz_scroll();
redrawcmdline();
#else
(char_u *)NULL, PV_NONE,
{(char_u *)0L, (char_u *)0L}
+#endif
+ },
+ {"completeopt", "cot", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
+#ifdef FEAT_INS_EXPAND
+ (char_u *)&p_cot, PV_NONE,
+ {(char_u *)"menu", (char_u *)0L}
+#else
+ (char_u *)NULL, PV_NONE,
+ {(char_u *)0L, (char_u *)0L}
#endif
},
{"confirm", "cf", P_BOOL|P_VI_DEF,
{(char_u *)FALSE, (char_u *)0L}},
{"highlight", "hl", P_STRING|P_VI_DEF|P_RCLR|P_COMMA|P_NODUP,
(char_u *)&p_hl, PV_NONE,
- {(char_u *)"8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal",
+ {(char_u *)"8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb",
(char_u *)0L}},
{"history", "hi", P_NUM|P_VIM,
(char_u *)&p_hi, PV_NONE,
static char *(p_bs_values[]) = {"indent", "eol", "start", NULL};
#ifdef FEAT_FOLDING
static char *(p_fdm_values[]) = {"manual", "expr", "marker", "indent", "syntax",
-#ifdef FEAT_DIFF
+# ifdef FEAT_DIFF
"diff",
-#endif
+# endif
NULL};
static char *(p_fcl_values[]) = {"all", NULL};
#endif
+#ifdef FEAT_INS_EXPAND
+static char *(p_cot_values[]) = {"menu", NULL};
+#endif
static void set_option_default __ARGS((int, int opt_flags, int compatible));
static void set_options_default __ARGS((int opt_flags));
}
}
}
+
+ /* 'completeopt' */
+ else if (varp == &p_cot)
+ {
+ if (check_opt_strings(p_cot, p_cot_values, TRUE) != OK)
+ errmsg = e_invarg;
+ }
#endif /* FEAT_INS_EXPAND */
EXTERN int p_confirm; /* 'confirm' */
#endif
EXTERN int p_cp; /* 'compatible' */
+#ifdef FEAT_INS_EXPAND
+EXTERN char_u *p_cot; /* 'completeopt' */
+#endif
EXTERN char_u *p_cpo; /* 'cpoptions' */
#ifdef FEAT_CSCOPE
EXTERN char_u *p_csprg; /* 'cscopeprg' */
/* no status line, can only be last window */
redraw_cmdline = TRUE;
}
- else if (!redrawing())
+ else if (!redrawing()
+#ifdef FEAT_INS_EXPAND
+ /* don't update status line when popup menu is visible and may be
+ * drawn over it */
+ || pum_visible()
+#endif
+ )
{
/* Don't redraw right now, do it later. */
wp->w_redr_status = TRUE;
# endif
if (edit_submode != NULL)
return;
+ /* Don't draw the ruler when the popup menu is visible, it may overlap. */
+ if (pum_visible())
+ return;
#endif
#ifdef FEAT_STL_OPT
"VertSplit term=reverse cterm=reverse gui=reverse",
"VisualNOS term=underline,bold cterm=underline,bold gui=underline,bold",
"DiffText term=reverse cterm=bold ctermbg=Red gui=bold guibg=Red",
+ "PmenuThumb cterm=reverse gui=reverse",
+ "PmenuSbar ctermbg=Grey guibg=Grey",
NULL
};
"SpellCap term=reverse ctermbg=LightBlue guisp=Blue gui=undercurl",
"SpellRare term=reverse ctermbg=LightMagenta guisp=Magenta gui=undercurl",
"SpellLocal term=underline ctermbg=Cyan guisp=DarkCyan gui=undercurl",
+ "Pmenu ctermbg=LightMagenta guibg=LightMagenta",
+ "PmenuSel ctermbg=LightGrey guibg=Grey",
"SpecialKey term=bold ctermfg=DarkBlue guifg=Blue",
"Title term=bold ctermfg=DarkMagenta gui=bold guifg=Magenta",
"WarningMsg term=standout ctermfg=DarkRed guifg=Red",
"SpellCap term=reverse ctermbg=Blue guisp=Blue gui=undercurl",
"SpellRare term=reverse ctermbg=Magenta guisp=Magenta gui=undercurl",
"SpellLocal term=underline ctermbg=Cyan guisp=Cyan gui=undercurl",
+ "Pmenu ctermbg=Magenta guibg=Magenta",
+ "PmenuSel ctermbg=Grey guibg=Grey",
"Title term=bold ctermfg=LightMagenta gui=bold guifg=Magenta",
"WarningMsg term=standout ctermfg=LightRed guifg=Red",
"WildMenu term=standout ctermbg=Yellow ctermfg=Black guibg=Yellow guifg=Black",
STARTTEST
:so small.vim
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
+:se cot=
\17nO#include "Xtestfile"
ru\ e\ e\18\ e\e\ 1
O\10\18\ e
\18\10\10\10\10\10
+
\18\10\10\18\18\ e\18\ e\ e\e
:se cpt=.,w,i
kOM\ e\18\ e\18\ e\18\18\18\10
#define VIM_VERSION_NODOT "vim70aa"
#define VIM_VERSION_SHORT "7.0aa"
#define VIM_VERSION_MEDIUM "7.0aa ALPHA"
-#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Sep 30)"
-#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Sep 30, compiled "
+#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Oct 3)"
+#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Oct 3, compiled "