vim/src
zeertzjq 3baf19a2b1
patch 9.1.0948: Missing cmdline completion for :pbuffer
Problem:  Missing cmdline completion for :pbuffer.
Solution: Add cmdline completion for :pbuffer like :buffer.
          (zeertzjq)

fixes: #16250
closes: #16251

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-12-19 20:05:28 +01:00
..
auto patch 9.1.0946: cross-compiling fails on osx-arm64 2024-12-18 21:18:01 +01:00
GvimExt patch 9.1.0656: MS-Windows: MSVC Makefile CPU handling can be improved 2024-08-03 14:36:37 +02:00
libvterm patch 9.0.1940: wrong upstream version in libvterm README 2023-09-24 23:43:38 +02:00
po translation(sv): re-include the change from #16240 2024-12-18 21:09:27 +01:00
proto patch 9.1.0936: cannot highlight completed text 2024-12-16 21:56:16 +01:00
tee
testdir patch 9.1.0948: Missing cmdline completion for :pbuffer 2024-12-19 20:05:28 +01:00
xdiff patch 9.0.2153: no support to build on OpenVMS 2023-12-05 16:04:23 +01:00
xpm patch 9.0.0542: MSVC build still has support for 2012 edition 2022-09-22 13:17:30 +01:00
xxd patch 9.1.0912: xxd: integer overflow with sparse files and -autoskip 2024-12-07 16:27:22 +01:00
alloc.c patch 9.0.1594: some internal error messages are translated 2023-05-31 17:12:14 +01:00
alloc.h
arabic.c
arglist.c patch 9.1.0678: [security]: use-after-free in alist_add() 2024-08-15 22:15:28 +02:00
ascii.h
autocmd.c patch 9.1.0828: string_T struct could be used more often 2024-11-02 16:11:58 +01:00
beval.c patch 9.0.2032: cannot get mouse click pos for tab or virt text 2023-10-15 10:03:30 +02:00
beval.h
bigvim.bat patch 9.0.1994: inconsistent feature description 2023-10-05 22:25:12 +02:00
bigvim64.bat patch 9.0.1994: inconsistent feature description 2023-10-05 22:25:12 +02:00
blob.c patch 9.1.0027: Vim is missing a foreach() func 2024-01-13 11:47:33 +01:00
blowfish.c patch 9.0.1594: some internal error messages are translated 2023-05-31 17:12:14 +01:00
buffer.c patch 9.1.0918: tiny Vim crashes with fuzzy buffer completion 2024-12-10 17:17:06 +01:00
bufwrite.c patch 9.1.0615: Unnecessary STRLEN() in make_percent_swname() 2024-07-25 20:58:42 +02:00
change.c patch 9.1.0546: vim-tiny fails on CTRL-X/CTRL-A 2024-07-08 21:12:55 +02:00
channel.c patch 9.1.0639: channel timeout may wrap around 2024-07-29 20:39:12 +02:00
charset.c patch 9.1.0803: tests: no error check when setting global 'isk' 2024-10-22 22:27:19 +02:00
cindent.c patch 9.1.0022: Coverity complains about improper use of negative value 2024-01-12 17:48:08 +01:00
clientserver.c patch 9.1.0356: MS-Windows: --remote may change working directory 2024-04-19 15:26:21 +02:00
clipboard.c patch 9.1.0852: No warning when X11 registers are not available 2024-11-11 20:52:55 +01:00
cmdexpand.c patch 9.1.0948: Missing cmdline completion for :pbuffer 2024-12-19 20:05:28 +01:00
cmdhist.c patch 9.1.0798: too many strlen() calls in cmdhist.c 2024-10-21 22:37:07 +02:00
config.h.in patch 9.1.0842: not checking for the sync() systemcall 2024-11-04 20:36:41 +01:00
config.mk.dist
config.mk.in patch 9.1.0173: msgfmt ver. 0.22 forcibly converts text to UTF-8 2024-03-12 22:14:39 +01:00
configure
configure.ac patch 9.1.0946: cross-compiling fails on osx-arm64 2024-12-18 21:18:01 +01:00
create_cmdidxs.vim
create_nvcmdidxs.c
create_nvcmdidxs.vim
crypt.c patch 9.0.2153: no support to build on OpenVMS 2023-12-05 16:04:23 +01:00
crypt_zip.c patch 9.0.1481: decrypting with libsodium may fail if the library changes 2023-04-23 17:50:22 +01:00
debugger.c patch 9.0.1930: compiler warnings with clang-17 2023-09-24 16:16:06 +02:00
dict.c patch 9.1.0524: the recursive parameter in the *_equal functions can be removed 2024-07-04 17:20:53 +02:00
diff.c patch 9.1.0743: diff mode does not handle overlapping diffs correctly 2024-09-26 16:19:42 +02:00
digraph.c patch 9.1.0900: Vim9: digraph_getlist() does not accept bool arg 2024-12-02 19:58:51 +01:00
dlldata.c
dosinst.c patch 9.1.0370: MS-Windows: patch number is zero in installer 2024-04-25 21:25:19 +02:00
dosinst.h
drawline.c patch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text 2024-12-18 21:12:25 +01:00
drawscreen.c patch 9.1.0889: Possible unnecessary redraw after adding/deleting lines 2024-11-26 15:08:02 +01:00
edit.c patch 9.1.0788: <CSI>27;<mod>u is not decoded to literal Escape in kitty/foot 2024-10-16 17:28:38 +02:00
errors.h patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
eval.c patch 9.1.0909: Vim9: crash when calling instance method 2024-12-06 18:35:12 +01:00
evalbuffer.c patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
evalfunc.c patch 9.1.0871: getcellpixels() can be further improved 2024-11-18 21:12:21 +01:00
evalvars.c patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
evalwindow.c patch 9.1.0888: leftcol property not available in getwininfo() 2024-11-25 19:39:04 +01:00
ex_cmdidxs.h patch 9.1.0934: hard to view an existing buffer in the preview window 2024-12-16 21:22:09 +01:00
ex_cmds.c patch 9.1.0849: there are a few typos in the source 2024-11-10 20:26:12 +01:00
ex_cmds.h patch 9.1.0934: hard to view an existing buffer in the preview window 2024-12-16 21:22:09 +01:00
ex_cmds2.c patch 9.1.0653: Patch v9.1.0648 not completely right 2024-08-02 19:06:41 +02:00
ex_docmd.c patch 9.1.0934: hard to view an existing buffer in the preview window 2024-12-16 21:22:09 +01:00
ex_eval.c patch 9.0.2059: outstanding exceptions may be skipped 2023-10-21 11:59:42 +02:00
ex_getln.c patch 9.1.0921: popupmenu logic is a bit convoluted 2024-12-13 12:13:23 +01:00
feature.h patch 9.1.0864: message history is fixed to 200 2024-11-14 22:34:24 +01:00
fileio.c patch 9.1.0761: :cd completion fails on Windows with backslash in path 2024-10-06 16:34:20 +02:00
filepath.c patch 9.1.0924: patch 9.1.0923 causes issues 2024-12-13 17:56:46 +01:00
findfile.c patch 9.1.0761: :cd completion fails on Windows with backslash in path 2024-10-06 16:34:20 +02:00
float.c patch 9.0.1132: code is indented more than needed 2023-01-02 16:54:53 +00:00
fold.c patch 9.1.0672: marker folds may get corrupted on undo 2024-08-11 20:12:41 +02:00
gc.c patch 9.1.0831: 'findexpr' can't be used as lambad or Funcref 2024-11-02 18:43:42 +01:00
getchar.c patch 9.1.0851: too many strlen() calls in getchar.c 2024-11-11 20:40:33 +01:00
globals.h patch 9.1.0590: Vim9: crash when accessing getregionpos() return value 2024-07-16 20:34:16 +02:00
gui.c patch 9.1.0581: Various lines are indented inconsistently 2024-07-14 10:20:20 +02:00
gui.h patch 9.1.0133: MS-Windows: ligatures not rendering correctly 2024-02-24 14:26:52 +01:00
gui_beval.c patch 9.1.0063: GTK code can be improved 2024-01-29 20:18:22 +01:00
gui_dwrite.cpp
gui_dwrite.h
gui_gtk.c patch 9.1.0881: GUI: message dialog may not get focus 2024-11-23 13:35:43 +01:00
gui_gtk_f.c patch 9.0.1158: code is indented more than necessary 2023-01-08 13:44:24 +00:00
gui_gtk_f.h
gui_gtk_res.xml
gui_gtk_vms.h
gui_gtk_x11.c patch 9.1.0930: tests: test_terminal2 may hang in GUI mode 2024-12-15 19:32:39 +01:00
gui_haiku.cc patch 9.1.0006: is*() and to*() function may be unsafe 2024-01-04 21:19:04 +01:00
gui_haiku.h
gui_motif.c patch 9.1.0210: Motif: leaking memory when mui_mch_dialog() fails 2024-03-26 18:44:48 +01:00
gui_photon.c patch 9.1.0006: is*() and to*() function may be unsafe 2024-01-04 21:19:04 +01:00
gui_w32.c patch 9.1.0641: MS-Windows: OLE enabled in console version 2024-07-29 20:57:19 +02:00
gui_w32_rc.h
gui_x11.c patch 9.1.0432: Ancient XPM preprocessor hack may cause build errors 2024-05-22 16:51:53 +02:00
gui_x11_pm.h
gui_xim.c patch 9.1.0078: GTK3: using wrong style for pre-edit area 2024-02-06 10:49:14 +01:00
gui_xmdlg.c
gui_xmebw.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
gui_xmebw.h
gui_xmebwp.h
gvimtutor
hardcopy.c patch 9.1.0907: printoptions:portrait does not change postscript Orientation 2024-12-06 17:19:25 +01:00
hashtab.c patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected file 2023-03-07 17:13:51 +00:00
help.c patch 9.1.0658: Coverity warns about dereferencing NULL pointer. 2024-08-03 14:52:00 +02:00
highlight.c patch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text 2024-12-18 21:12:25 +01:00
if_cscope.c patch 9.1.0449: MS-Windows: Compiler warnings 2024-05-30 07:46:30 +02:00
if_lua.c patch 9.1.0848: if_lua: v:false/v:true are not evaluated to boolean 2024-11-09 18:31:08 +01:00
if_mzsch.c patch 9.1.0630: MS-Windows: build fails with VIMDLL and mzscheme 2024-07-27 13:25:34 +02:00
if_mzsch.h
if_ole.cpp patch 9.0.1687: mapset() not properly handling script ID 2023-08-11 23:16:10 +02:00
if_ole.h
if_ole.idl
if_perl.xs patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
if_perlsfio.c
if_py_both.h patch 9.1.0844: if_python: no way to pass local vars to python 2024-11-06 21:53:07 +01:00
if_python.c patch 9.1.0844: if_python: no way to pass local vars to python 2024-11-06 21:53:07 +01:00
if_python3.c patch 9.1.0844: if_python: no way to pass local vars to python 2024-11-06 21:53:07 +01:00
if_ruby.c patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
if_tcl.c patch 9.1.0062: Internal error when :luado/perldo/pydo etc delete lines 2024-01-29 19:32:39 +01:00
if_xcmdsrv.c patch 9.1.0006: is*() and to*() function may be unsafe 2024-01-04 21:19:04 +01:00
iid_ole.c
indent.c patch 9.1.0806: tests: no error check when setting global 'briopt' 2024-10-22 22:59:39 +02:00
insexpand.c patch 9.1.0945: ComplMatchIns highlight doesn't end after inserted text 2024-12-18 21:12:25 +01:00
INSTALL INSTALL: remove outdated notice about statically linked executable 2024-07-20 12:08:43 +02:00
install-sh
INSTALLami.txt
INSTALLmac.txt Update runtime files 2023-05-14 18:50:25 +01:00
installman.sh
installml.sh
INSTALLpc.txt runtime(doc): update vim90 to vim91 in docs 2024-09-26 15:52:22 +02:00
INSTALLvms.txt patch 9.0.2153: no support to build on OpenVMS 2023-12-05 16:04:23 +01:00
INSTALLx.txt Update runtime files 2023-04-22 22:40:14 +01:00
iscygpty.c patch 9.0.2054: win32: iscygpty needs update 2023-10-20 11:57:08 +02:00
iscygpty.h
job.c patch 9.0.1527: crash when using negative value for term_cols 2023-05-08 18:26:03 +01:00
json.c patch 9.0.2076: Vim9: No support for type aliases 2023-10-27 19:35:26 +02:00
json_test.c
keymap.h patch 9.1.0058: Cannot map Super Keys in GTK UI 2024-01-25 22:44:00 +01:00
kword_test.c
link.390
link.sh patch 9.1.0452: Configure checks for libelf unnecessarily 2024-05-30 19:31:36 +02:00
list.c patch 9.1.0524: the recursive parameter in the *_equal functions can be removed 2024-07-04 17:20:53 +02:00
locale.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
logfile.c patch 9.0.1453: typos in source code and tests 2023-04-14 21:54:25 +01:00
macros.h patch 9.1.0824: too many strlen() calls in register.c 2024-10-31 10:09:04 +01:00
main.c patch 9.1.0797: testing of options can be further improved 2024-10-21 22:20:51 +02:00
Make_all.mak
Make_ami.mak patch 9.1.0790: Amiga: AmigaOS4 build should use default runtime (newlib) 2024-10-17 20:49:36 +02:00
Make_cyg.mak
Make_cyg_ming.mak patch 9.1.0669: if_python: stable python ABI not used by default 2024-08-11 18:41:41 +02:00
Make_ming.mak
Make_mvc.mak patch 9.1.0669: if_python: stable python ABI not used by default 2024-08-11 18:41:41 +02:00
Make_vms.mms patch 9.1.0431: eval.c is too long 2024-05-22 16:45:04 +02:00
Makefile patch 9.1.0939: make installtutor fails 2024-12-17 20:16:58 +01:00
map.c patch 9.1.0814: mapset() may remove unrelated mapping 2024-10-24 21:43:43 +02:00
mark.c patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages 2024-07-10 19:36:36 +02:00
match.c patch 9.1.0340: Problem: Error with matchaddpos() and empty list 2024-04-16 22:23:17 +02:00
mbyte.c patch 9.1.0736: Unicode tables are outdated 2024-09-17 20:24:56 +02:00
memfile.c patch 9.1.0842: not checking for the sync() systemcall 2024-11-04 20:36:41 +01:00
memfile_test.c
memline.c patch 9.1.0615: Unnecessary STRLEN() in make_percent_swname() 2024-07-25 20:58:42 +02:00
menu.c patch 9.0.1687: mapset() not properly handling script ID 2023-08-11 23:16:10 +02:00
message.c patch 9.1.0916: messages.c is exceeding 80 columns 2024-12-09 20:05:59 +01:00
message_test.c patch 9.0.1905: FEAT_FLOAT no longer defined 2023-09-17 16:58:22 +02:00
misc1.c patch 9.1.0818: some global functions are only used in single files 2024-10-27 21:54:11 +01:00
misc2.c patch 9.1.0828: string_T struct could be used more often 2024-11-02 16:11:58 +01:00
mouse.c patch 9.1.0406: Divide by zero with getmousepos() and 'smoothscroll' 2024-05-11 11:23:37 +02:00
move.c patch 9.1.0526: Unwanted cursor movement with pagescroll at start of buffer 2024-07-04 17:35:56 +02:00
msvc-latest.bat patch 9.0.0528: MS-Windows: no batch files for more recent MSVC versions 2022-09-21 11:56:41 +01:00
msvc2015.bat patch 9.0.0526: MS-Windows: still some support for XP and old compilers 2022-09-21 10:51:13 +01:00
msvc2017.bat patch 9.0.0528: MS-Windows: no batch files for more recent MSVC versions 2022-09-21 11:56:41 +01:00
msvc2019.bat patch 9.0.0528: MS-Windows: no batch files for more recent MSVC versions 2022-09-21 11:56:41 +01:00
msvc2022.bat patch 9.0.0528: MS-Windows: no batch files for more recent MSVC versions 2022-09-21 11:56:41 +01:00
msys32.bat
msys64.bat
mysign
nbdebug.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
nbdebug.h patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
netbeans.c patch 9.1.0561: netbeans: variable used un-initialized (Coverity) 2024-07-11 21:41:23 +02:00
normal.c patch 9.1.0938: exclusive selection not respected when re-selecting block mode 2024-12-16 22:49:15 +01:00
nv_cmdidxs.h
nv_cmds.h patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
ops.c patch 9.1.0917: various vartabstop and shiftround bugs when shifting lines 2024-12-09 21:28:08 +01:00
option.c patch 9.1.0908: not possible to configure :messages 2024-12-06 17:26:25 +01:00
option.h patch 9.1.0911: Variable name for 'messagesopt' doesn't match short name 2024-12-07 16:09:08 +01:00
optiondefs.h patch 9.1.0911: Variable name for 'messagesopt' doesn't match short name 2024-12-07 16:09:08 +01:00
optionstr.c patch 9.1.0911: Variable name for 'messagesopt' doesn't match short name 2024-12-07 16:09:08 +01:00
os_amiga.c patch 9.0.1529: code style test doesn't check for space after "if" 2023-05-09 15:00:00 +01:00
os_amiga.h patch 9.0.1653: Amiga: default 'viewdir' may not work 2023-06-23 22:23:01 +01:00
os_dos.h patch 9.0.1650: MS-Windows: default 'viewdir' may include read-only directory 2023-06-23 16:15:13 +01:00
os_haiku.h
os_haiku.rdef.in
os_mac.h patch 9.0.1621: FILETYPE_FILE is defined to the same value multiple times 2023-06-08 22:16:23 +01:00
os_mac_conv.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
os_macosx.m patch 9.0.1471: warnings for function declarations 2023-04-19 20:28:48 +01:00
os_mswin.c patch 9.1.0915: GVim: default font size a bit too small 2024-12-08 10:26:51 +01:00
os_qnx.c patch 9.0.1391: "clear" macros are not always used 2023-03-07 17:45:11 +00:00
os_qnx.h
os_unix.c patch 9.1.0924: patch 9.1.0923 causes issues 2024-12-13 17:56:46 +01:00
os_unix.h patch 9.1.0871: getcellpixels() can be further improved 2024-11-18 21:12:21 +01:00
os_unixx.h patch 9.0.1544: recent glibc marks sigset() as a deprecated 2023-05-11 22:25:42 +01:00
os_vms.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
os_vms_conf.h patch 9.1.0005: OpenVMS does not support python3 and xterm_save 2024-01-04 21:05:18 +01:00
os_vms_fix.com
os_vms_mms.c
os_w32dll.c patch 9.1.0621: MS-Windows: startup code can be improved 2024-07-26 18:46:54 +02:00
os_w32exe.c patch 9.1.0630: MS-Windows: build fails with VIMDLL and mzscheme 2024-07-27 13:25:34 +02:00
os_win32.c patch 9.1.0780: MS-Windows: incorrect Win32 error checking 2024-10-13 19:44:07 +02:00
os_win32.h patch 9.1.0750: there are some Win9x legacy references 2024-09-30 19:42:28 +02:00
osdef.sh
osdef1.h.in
osdef2.h.in
pathdef.sh
popupmenu.c patch 9.1.0923: wrong MIN macro in popupmenu.c 2024-12-13 12:30:20 +01:00
popupwin.c patch 9.1.0710: popup window may hide part of Command line 2024-09-03 18:20:13 +02:00
profiler.c patch 9.1.0089: qsort() comparison functions should be transitive 2024-02-09 19:39:14 +01:00
proto.h patch 9.1.0431: eval.c is too long 2024-05-22 16:45:04 +02:00
protodef.h
pty.c patch 9.0.2180: POSIX function name in exarg causes issues 2023-12-19 20:53:07 +01:00
quickfix.c patch 9.1.0785: cannot preserve error position when setting quickfix list 2024-10-14 20:53:07 +02:00
README.md patch 9.1.0431: eval.c is too long 2024-05-22 16:45:04 +02:00
regexp.c patch 9.1.0828: string_T struct could be used more often 2024-11-02 16:11:58 +01:00
regexp.h patch 9.1.0011: regexp cannot match combining chars in collection 2024-01-04 22:54:08 +01:00
regexp_bt.c patch 9.1.0645: regex: wrong match when searching multi-byte char case-insensitive 2024-07-30 20:39:18 +02:00
regexp_nfa.c patch 9.1.0701: crash with NFA regex engine when searching for composing chars 2024-08-28 23:17:52 +02:00
register.c patch 9.1.0858: Coverity complains about dead code 2024-11-12 20:10:58 +01:00
screen.c patch 9.1.0358: wrong drawing in GUI with setcellwidth() 2024-04-20 18:04:06 +02:00
scriptfile.c patch 9.1.0462: eval5() and eval7 are too complex 2024-06-03 18:52:22 +02:00
search.c patch 9.1.0766: too many strlen() calls in ex_getln.c 2024-10-07 21:40:39 +02:00
session.c patch 9.1.0207: No autocommand when writing session file 2024-03-26 18:23:06 +01:00
sha256.c
sign.c patch 9.1.0887: Wrong expression in sign.c 2024-11-25 09:59:20 +01:00
sound.c patch 9.1.0879: source is not consistently formatted 2024-11-19 22:55:13 +01:00
spell.c patch 9.1.0903: potential overflow in spell_soundfold_wsal() 2024-12-04 20:16:17 +01:00
spell.h patch 9.0.0855: comment not located above the code it refers to 2022-11-10 17:05:28 +00:00
spellfile.c patch 9.1.0608: Coverity warns about a few potential issues 2024-07-20 13:26:44 +02:00
spellsuggest.c patch 9.1.0418: Cannot move to previous/next rare word 2024-05-17 18:52:45 +02:00
strings.c patch 9.1.0884: gcc warns about uninitialized variable 2024-11-24 14:09:40 +01:00
structs.h patch 9.1.0871: getcellpixels() can be further improved 2024-11-18 21:12:21 +01:00
syntax.c patch 9.1.0828: string_T struct could be used more often 2024-11-02 16:11:58 +01:00
tag.c patch 9.1.0581: Various lines are indented inconsistently 2024-07-14 10:20:20 +02:00
tearoff.bmp
term.c patch 9.1.0892: the max value of 'tabheight' is limited by other tabpages 2024-11-28 18:16:55 +01:00
termdefs.h patch 9.1.0321: Garbled output on serial terminals with XON/XOFF flow control 2024-04-14 20:02:50 +02:00
terminal.c patch 9.1.0808: Terminal scrollback doesn't shrink when decreasing 'termwinscroll' 2024-10-22 23:17:45 +02:00
termlib.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
testing.c patch 9.1.0666: assert_equal() doesn't show multibyte string correctly 2024-08-09 19:52:10 +02:00
textformat.c patch 9.1.0940: Wrong cursor shape with "gq" and 'indentexpr' executes :normal 2024-12-17 20:26:45 +01:00
textobject.c patch 9.1.0504: inner-tag textobject confused about ">" in attributes 2024-06-19 20:26:51 +02:00
textprop.c patch 9.1.0722: crash with large id in text_prop interface 2024-09-08 20:05:23 +02:00
time.c patch 9.0.2050: Vim9: crash with deferred function call and exception 2023-10-19 10:52:34 +02:00
toolbar.phi
toolcheck
tools.bmp
typemap
typval.c patch 9.1.0818: some global functions are only used in single files 2024-10-27 21:54:11 +01:00
ui.c patch 9.0.2069: possible to escape bracketed paste mode with Ctrl-C 2023-10-26 22:08:41 +02:00
undo.c patch 9.1.0843: too many strlen() calls in undo.c 2024-11-06 21:39:15 +01:00
uninstall.c patch 9.1.0006: is*() and to*() function may be unsafe 2024-01-04 21:19:04 +01:00
usercmd.c patch 9.1.0828: string_T struct could be used more often 2024-11-02 16:11:58 +01:00
userfunc.c patch 9.1.0818: some global functions are only used in single files 2024-10-27 21:54:11 +01:00
version.c patch 9.1.0948: Missing cmdline completion for :pbuffer 2024-12-19 20:05:28 +01:00
version.h patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes 2024-04-23 20:33:38 +02:00
vim.h patch 9.1.0892: the max value of 'tabheight' is limited by other tabpages 2024-11-28 18:16:55 +01:00
vim.ico
vim.manifest patch 9.1.0000: Vim 9.1 release 2024-01-02 16:51:11 +01:00
vim.rc
vim.tlb
vim9.h patch 9.1.0673: Vim9: too recursive func calls when calling super-class method 2024-08-13 23:27:22 +02:00
vim9class.c patch 9.1.0904: Vim9: copy-paste error in class_defining_member() 2024-12-04 20:19:40 +01:00
vim9cmds.c patch 9.1.0633: Compilation warnings with -Wunused-parameter 2024-07-28 21:12:20 +02:00
vim9compile.c patch 9.1.0947: short-description 2024-12-19 20:00:31 +01:00
vim9execute.c patch 9.1.0861: Vim9: no runtime check for object member access of any var 2024-11-12 21:03:00 +01:00
vim9expr.c patch 9.1.0673: Vim9: too recursive func calls when calling super-class method 2024-08-13 23:27:22 +02:00
vim9instr.c patch 9.1.0673: Vim9: too recursive func calls when calling super-class method 2024-08-13 23:27:22 +02:00
vim9script.c patch 9.1.0359: MS-Windows: relative import in a script sourced from a buffer doesn't work 2024-04-20 18:31:21 +02:00
vim9type.c patch 9.1.0688: Vim9: dereferences NULL pointer in check_type_is_value() 2024-08-22 21:25:18 +02:00
vim_alert.ico
vim_error.ico
vim_icon.xbm
vim_info.ico
vim_mask.xbm
vim_quest.ico
viminfo.c patch 9.1.0824: too many strlen() calls in register.c 2024-10-31 10:09:04 +01:00
vimrun.c
vimtutor patch 9.1.0901: MS-Windows: vimtutor batch script can be improved 2024-12-02 20:07:58 +01:00
which.sh
winclip.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
window.c patch 9.1.0931: ml_get error in terminal buffer 2024-12-15 19:36:11 +01:00
xpm_w32.c
xpm_w32.h

Vim Logo

Vim source code

Here are a few hints for finding your way around the source code. This doesn't make it less complex than it is, but it gets you started.

You might also want to read :help development.

Jumping around

First of all, use :make tags to generate a tags file, so that you can jump around in the source code.

To jump to a function or variable definition, move the cursor on the name and use the CTRL-] command. Use CTRL-T or CTRL-O to jump back.

To jump to a file, move the cursor on its name and use the gf command.

Most code can be found in a file with an obvious name (incomplete list):

File name Description
alloc.c memory management
arglist.c handling argument list
autocmd.c autocommands
blob.c blob data type
buffer.c manipulating buffers (loaded files)
bufwrite.c writing a buffer to file
change.c handling changes to text
cindent.c C and Lisp indentation
clientserver.c client server functionality
clipboard.c handling the clipboard
cmdexpand.c command-line completion
cmdhist.c command-line history
debugger.c vim script debugger
diff.c diff mode (vimdiff)
drawline.c drawing a window line
drawscreen.c drawing the windows
eval.c expression evaluation
evalbuffer.c buffer related built-in functions
evalfunc.c built-in functions
evalvars.c vim variables
evalwindow.c window related built-in functions
fileio.c reading and writing files
filepath.c dealing with file names and paths
findfile.c search for files in 'path'
fold.c folding
getchar.c getting characters and key mapping
gc.c garbage collection
help.c vim help related functions
highlight.c syntax highlighting
indent.c text indentation
insexpand.c Insert mode completion
locale.c locale/language handling
map.c mapping and abbreviations
mark.c marks
match.c highlight matching
float.c floating point functions
mbyte.c multi-byte character handling
memfile.c storing lines for buffers in a swapfile
memline.c storing lines for buffers in memory
menu.c menus
message.c (error) messages
mouse.c handling the mouse
ops.c handling operators ("d", "y", "p")
option.c options
optionstr.c handling string options
popupmenu.c popup menu
popupwin.c popup window
profiler.c vim script profiler
quickfix.c quickfix commands (":make", ":cn")
regexp.c pattern matching
register.c handling registers
scriptfile.c runtime directory handling and sourcing scripts
screen.c lower level screen functions
search.c pattern searching
session.c sessions and views
sign.c signs
spell.c spell checking core
spellfile.c spell file handling
spellsuggest.c spell correction suggestions
strings.c string manipulation functions
syntax.c syntax and other highlighting
tag.c tags
term.c terminal handling, termcap codes
testing.c testing: assert and test functions
textformat.c text formatting
textobject.c text objects
textprop.c text properties
time.c time and timer functions
typval.c vim script type/value functions
undo.c undo and redo
usercmd.c user defined commands
userfunc.c user defined functions
viminfo.c viminfo handling
window.c handling split windows

Debugging

If you have a reasonable recent version of gdb, you can use the :Termdebug command to debug Vim. See :help :Termdebug.

When something is time critical or stepping through code is a hassle, use the channel logging to create a time-stamped log file. Add lines to the code like this:

ch_log(NULL, "Value is now %02x", value);

After compiling and starting Vim, do:

:call ch_logfile('debuglog', 'w')

And edit debuglog to see what happens. The channel functions already have ch_log() calls, thus you always see that in the log.

Important Variables

The current mode is stored in State. The values it can have are NORMAL, INSERT, CMDLINE, and a few others.

The current window is curwin. The current buffer is curbuf. These point to structures with the cursor position in the window, option values, the file name, etc. These are defined in structs.h.

All the global variables are declared in globals.h.

The main loop

This is conveniently called main_loop(). It updates a few things and then calls normal_cmd() to process a command. This returns when the command is finished.

The basic idea is that Vim waits for the user to type a character and processes it until another character is needed. Thus there are several places where Vim waits for a character to be typed. The vgetc() function is used for this. It also handles mapping.

Updating the screen is mostly postponed until a command or a sequence of commands has finished. The work is done by update_screen(), which calls win_update() for every window, which calls win_line() for every line. See the start of screen.c for more explanations.

Command-line mode

When typing a :, normal_cmd() will call getcmdline() to obtain a line with an Ex command. getcmdline() contains a loop that will handle each typed character. It returns when hitting CR or Esc or some other character that ends the command line mode.

Ex commands

Ex commands are handled by the function do_cmdline(). It does the generic parsing of the : command line and calls do_one_cmd() for each separate command. It also takes care of while loops.

do_one_cmd() parses the range and generic arguments and puts them in the exarg_t and passes it to the function that handles the command.

The : commands are listed in ex_cmds.h. The third entry of each item is the name of the function that handles the command. The last entry are the flags that are used for the command.

Normal mode commands

The Normal mode commands are handled by the normal_cmd() function. It also handles the optional count and an extra character for some commands. These are passed in a cmdarg_t to the function that handles the command.

There is a table nv_cmds in normal.c which lists the first character of every command. The second entry of each item is the name of the function that handles the command.

Insert mode commands

When doing an i or a command, normal_cmd() will call the edit() function. It contains a loop that waits for the next character and handles it. It returns when leaving Insert mode.

Options

There is a list with all option names in option.c, called options[].

The GUI

Most of the GUI code is implemented like it was a clever terminal. Typing a character, moving a scrollbar, clicking the mouse, etc. are all translated into events which are written in the input buffer. These are read by the main code, just like reading from a terminal. The code for this is scattered through gui.c. For example, gui_send_mouse_event() for a mouse click and gui_menu_cb() for a menu action. Key hits are handled by the system-specific GUI code, which calls add_to_input_buf() to send the key code.

Updating the GUI window is done by writing codes in the output buffer, just like writing to a terminal. When the buffer gets full or is flushed, gui_write() will parse the codes and draw the appropriate items. Finally the system-specific GUI code will be called to do the work.

Debugging the GUI

Remember to prevent that gvim forks and the debugger thinks Vim has exited, add the -f argument. In gdb: run -f -g.

When stepping through display updating code, the focus event is triggered when going from the debugger to Vim and back. To avoid this, recompile with some code in gui_focus_change() disabled.

Contributing

If you would like to help making Vim better, see the CONTRIBUTING.md file.

This is README.md for version 9.1 of the Vim source code.