Vim/src
zeertzjq 49f0524fb5 patch 9.0.1277: cursor may move with autocmd in Visual mode
Problem:    Cursor may move with autocmd in Visual mode.
Solution:   Restore "VIsual_active" before calling check_cursor().
            (closes #11939)
2023-02-04 10:58:34 +00:00
..
GvimExt patch 9.0.0828: various typos 2022-11-02 13:30:51 +00:00
auto patch 9.0.1219: handling of FORTIFY_SOURCE flags doesn't match Fedora usage 2023-01-18 16:09:51 +00:00
libvterm patch 9.0.1049: crash when opening a very small terminal window 2022-12-12 13:47:44 +00:00
po Update runtime files. 2023-02-02 13:59:48 +00:00
proto patch 9.0.1262: the did_set_string_option function is too long 2023-01-30 13:04:42 +00:00
tee patch 9.0.0421: MS-Windows makefiles are inconsistently named 2022-09-09 10:52:47 +01:00
testdir patch 9.0.1277: cursor may move with autocmd in Visual mode 2023-02-04 10:58:34 +00:00
xdiff patch 8.2.5073: clang on MS-Windows produces warnings 2022-06-09 20:53:54 +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.0.0395: clang warnings for function prototypes 2022-09-06 16:31:26 +01:00
INSTALL patch 9.0.0700: there is no real need for a "big" build 2022-10-08 19:26:41 +01:00
INSTALLami.txt patch 8.2.1648: Amiga: no common build file for Amiga (-like) systems 2020-09-09 20:41:40 +02:00
INSTALLmac.txt Update runtime files. 2021-04-17 16:31:09 +02:00
INSTALLpc.txt patch 9.0.1190: AppVeyor runs much slower with MSVC 2022 2023-01-13 15:28:14 +00:00
INSTALLvms.txt patch 9.0.0700: there is no real need for a "big" build 2022-10-08 19:26:41 +01:00
INSTALLx.txt Update runtime files. 2020-12-10 21:11:27 +01:00
Make_all.mak
Make_ami.mak patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
Make_cyg.mak
Make_cyg_ming.mak patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
Make_ming.mak
Make_mvc.mak patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
Make_vms.mms patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
Makefile patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
README.md release version 9.0 2022-06-28 13:44:46 +01:00
alloc.c patch 9.0.1152: class "implements" argument not implemented 2023-01-06 18:42:20 +00:00
alloc.h patch 8.2.4716: memory allocation failure not tested when defining a function 2022-04-09 11:09:07 +01:00
arabic.c patch 8.2.2922: computing array length is done in various ways 2021-06-02 13:28:16 +02:00
arglist.c patch 9.0.1132: code is indented more than needed 2023-01-02 16:54:53 +00:00
ascii.h patch 8.2.4273: the EBCDIC support is outdated 2022-01-31 14:59:41 +00:00
autocmd.c patch 9.0.1277: cursor may move with autocmd in Visual mode 2023-02-04 10:58:34 +00:00
beval.c patch 9.0.0634: evaluating "expr" options has more overhead than needed 2022-10-01 19:43:52 +01:00
beval.h
bigvim.bat
bigvim64.bat
blob.c patch 9.0.0828: various typos 2022-11-02 13:30:51 +00:00
blowfish.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
buffer.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
bufwrite.c patch 9.0.0965: using one window for executing autocommands is insufficient 2022-11-28 18:51:43 +00:00
change.c patch 9.0.1213: adding a line below the last one does not expand fold 2023-01-17 19:48:07 +00:00
channel.c patch 9.0.1269: channel test often fails on Mac OS 2023-01-31 21:01:08 +00:00
charset.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
cindent.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
clientserver.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
clipboard.c patch 9.0.0206: redraw flags are not named specifically 2022-08-14 14:17:45 +01:00
cmdexpand.c patch 9.0.1242: code for :runtime completion is not consistent 2023-01-25 15:04:22 +00:00
cmdhist.c patch 9.0.1098: code uses too much indent 2022-12-26 12:50:04 +00:00
config.h.in patch 9.0.1110: build fails on Mac OS X 10.4/10.5 2022-12-30 10:42:23 +00:00
config.mk.dist
config.mk.in patch 8.2.4039: the xdiff library is linked in even when not used 2022-01-08 13:36:57 +00:00
configure
configure.ac patch 9.0.1219: handling of FORTIFY_SOURCE flags doesn't match Fedora usage 2023-01-18 16:09:51 +00:00
create_cmdidxs.vim
create_nvcmdidxs.c patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice 2022-01-31 12:27:18 +00:00
create_nvcmdidxs.vim patch 8.2.4270: generating nv_cmdidxs.h requires building Vim twice 2022-01-31 12:27:18 +00:00
crypt.c patch 9.0.1023: MS-Windows: dynamic loading of libsodium doesn't work 2022-12-06 16:17:01 +00:00
crypt_zip.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
debugger.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
dict.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
diff.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
digraph.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
dlldata.c
dosinst.c patch 9.0.1132: code is indented more than needed 2023-01-02 16:54:53 +00:00
dosinst.h patch 8.2.5077: various warnings from clang on MS-Windows 2022-06-11 10:43:26 +01:00
drawline.c patch 9.0.1226: spurious empty line when using text properties 2023-01-21 15:54:59 +00:00
drawscreen.c patch 9.0.1061: cannot display 'showcmd' somewhere else 2022-12-15 13:15:39 +00:00
edit.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
errors.h patch 9.0.1249: cannot export an abstract class 2023-01-27 13:16:19 +00:00
eval.c patch 9.0.1266: error for space before ": type" is inconsistent 2023-01-30 21:12:34 +00:00
evalbuffer.c patch 9.0.0965: using one window for executing autocommands is insufficient 2022-11-28 18:51:43 +00:00
evalfunc.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
evalvars.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
evalwindow.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
ex_cmdidxs.h patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
ex_cmds.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
ex_cmds.h patch 9.0.1249: cannot export an abstract class 2023-01-27 13:16:19 +00:00
ex_cmds2.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
ex_docmd.c patch 9.0.1215: using isalpha() adds dependency on current locale 2023-01-17 21:38:25 +00:00
ex_eval.c patch 9.0.0869: bogus error when string used after :elseif 2022-11-12 23:12:55 +00:00
ex_getln.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
feature.h patch 9.0.1110: build fails on Mac OS X 10.4/10.5 2022-12-30 10:42:23 +00:00
fileio.c patch 9.0.1132: code is indented more than needed 2023-01-02 16:54:53 +00:00
filepath.c patch 9.0.1231: completion of :runtime does not handle {where} argument 2023-01-22 18:38:51 +00:00
findfile.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00: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.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
getchar.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
globals.h patch 9.0.1224: cannot call a :def function with a number for float argument 2023-01-20 18:49:46 +00:00
gui.c patch 9.0.1158: code is indented more than necessary 2023-01-08 13:44:24 +00:00
gui.h patch 9.0.0375: the footer feature is unused 2022-09-04 12:29:28 +01:00
gui_beval.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
gui_dwrite.cpp patch 8.2.5073: clang on MS-Windows produces warnings 2022-06-09 20:53:54 +01:00
gui_dwrite.h
gui_gtk.c patch 9.0.1158: code is indented more than necessary 2023-01-08 13:44:24 +00: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 patch 8.2.1878: GTK: error for redefining function 2020-10-21 16:10:21 +02:00
gui_gtk_res.xml
gui_gtk_vms.h patch 8.2.2247: VMS: various smaller problems 2020-12-30 13:14:45 +01:00
gui_gtk_x11.c patch 9.0.1158: code is indented more than necessary 2023-01-08 13:44:24 +00:00
gui_haiku.cc patch 9.0.0206: redraw flags are not named specifically 2022-08-14 14:17:45 +01:00
gui_haiku.h
gui_motif.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
gui_photon.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
gui_w32.c patch 9.0.1158: code is indented more than necessary 2023-01-08 13:44:24 +00:00
gui_w32_rc.h
gui_x11.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
gui_x11_pm.h
gui_xim.c patch 9.0.1262: the did_set_string_option function is too long 2023-01-30 13:04:42 +00:00
gui_xmdlg.c patch 8.2.2160: various typos 2020-12-18 19:49:56 +01:00
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 Update runtime files 2021-08-29 21:55:35 +02:00
hardcopy.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
hashtab.c patch 9.0.1100: a hashtab with many removed items is not cleaned up 2022-12-26 13:51:26 +00:00
help.c patch 9.0.0706: :help in a narrow window always opens at the top 2022-10-09 15:54:53 +01:00
highlight.c patch 9.0.1166: code is indented more than necessary 2023-01-09 19:04:23 +00:00
if_cscope.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
if_lua.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
if_mzsch.c patch 9.0.1183: code is indented more than necessary 2023-01-12 12:33:30 +00:00
if_mzsch.h
if_ole.cpp patch 9.0.0634: evaluating "expr" options has more overhead than needed 2022-10-01 19:43:52 +01:00
if_ole.h
if_ole.idl
if_perl.xs patch 9.0.0965: using one window for executing autocommands is insufficient 2022-11-28 18:51:43 +00:00
if_perlsfio.c
if_py_both.h patch 9.0.1044: setting window height using Python may cause errors 2022-12-10 11:17:11 +00:00
if_python.c patch 9.0.1183: code is indented more than necessary 2023-01-12 12:33:30 +00:00
if_python3.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
if_ruby.c patch 9.0.1183: code is indented more than necessary 2023-01-12 12:33:30 +00:00
if_tcl.c patch 9.0.0634: evaluating "expr" options has more overhead than needed 2022-10-01 19:43:52 +01:00
if_xcmdsrv.c patch 9.0.1183: code is indented more than necessary 2023-01-12 12:33:30 +00:00
iid_ole.c
indent.c patch 9.0.1183: code is indented more than necessary 2023-01-12 12:33:30 +00:00
insexpand.c patch 9.0.1262: the did_set_string_option function is too long 2023-01-30 13:04:42 +00:00
install-sh patch 9.0.0287: Irix systems no longer exist 2022-08-27 21:24:26 +01:00
installman.sh patch 8.2.4421: some installed files and directories have wrong permissions 2022-02-19 13:25:18 +00:00
installml.sh
iscygpty.c patch 8.2.5073: clang on MS-Windows produces warnings 2022-06-09 20:53:54 +01:00
iscygpty.h
job.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
json.c patch 9.0.1031: Vim9 class is not implemented yet 2022-12-08 15:32:33 +00:00
json_test.c
keymap.h patch 9.0.0974: even when Esc is encoded a timeout is used 2022-11-29 20:33:20 +00:00
kword_test.c
link.390
link.sh
list.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00: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.0979: ch_log() text can be hard to find in the log file 2022-12-01 11:02:23 +00:00
macros.h patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
main.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
map.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
mark.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
match.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
mbyte.c patch 9.0.1223: cannot use setcellwidths() below 0x100 2023-01-20 16:00:55 +00:00
memfile.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
memfile_test.c
memline.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
menu.c patch 9.0.1196: code is indented more than necessary 2023-01-14 12:32:28 +00:00
message.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
message_test.c patch 9.0.0828: various typos 2022-11-02 13:30:51 +00:00
misc1.c patch 9.0.1215: using isalpha() adds dependency on current locale 2023-01-17 21:38:25 +00:00
misc2.c patch 9.0.1199: crash when using kitty and using a mapping with <Esc> 2023-01-14 21:07:07 +00:00
mouse.c patch 9.0.0931: MS-Windows: mouse column limited to 223 2022-11-23 22:28:08 +00:00
move.c patch 9.0.1247: divide by zero with 'smoothscroll' set and a narrow window 2023-01-26 14:14:43 +00: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.0.1208: code is indented more than necessary 2023-01-16 18:19:05 +00:00
normal.c patch 9.0.1273: "1v" may select block with wrong size 2023-02-01 17:33:18 +00:00
nv_cmdidxs.h patch 8.2.4252: generating the normal command table at runtime is inefficient 2022-01-29 13:06:40 +00:00
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.0.1262: the did_set_string_option function is too long 2023-01-30 13:04:42 +00:00
option.c patch 9.0.1275: the code for setting options is too complicated 2023-02-02 16:34:11 +00:00
option.h patch 9.0.1064: code for making 'shortmess' temporarily empty is repeated 2022-12-16 16:41:23 +00:00
optiondefs.h patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
optionstr.c patch 9.0.1275: the code for setting options is too complicated 2023-02-02 16:34:11 +00:00
os_amiga.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
os_amiga.h patch 8.2.1640: Amiga: missing header for getgrgid() 2020-09-09 13:01:27 +02:00
os_dos.h
os_haiku.h
os_haiku.rdef.in
os_mac.h patch 8.2.5071: with some Mac OS version clockid_t is redefined 2022-06-09 14:50:10 +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.0828: various typos 2022-11-02 13:30:51 +00:00
os_mswin.c patch 9.0.1210: compiler complains about declaration after label 2023-01-16 19:51:03 +00:00
os_qnx.c patch 9.0.1208: code is indented more than necessary 2023-01-16 18:19:05 +00:00
os_qnx.h
os_unix.c patch 9.0.1208: code is indented more than necessary 2023-01-16 18:19:05 +00:00
os_unix.h patch 9.0.0287: Irix systems no longer exist 2022-08-27 21:24:26 +01:00
os_unixx.h
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.0.0491: no good reason to build without the float feature 2022-09-17 21:08:33 +01:00
os_vms_fix.com
os_vms_mms.c
os_w32dll.c
os_w32exe.c
os_win32.c patch 9.0.1252: MS-Windows: scrollback cropped off on Vim exit 2023-01-28 10:28:09 +00:00
os_win32.h patch 9.0.0781: workaround to rename "small" to "smallfont" is clumsy 2022-10-17 14:51:36 +01:00
osdef.sh
osdef1.h.in patch 8.2.5061: C89 requires signal handlers to return void 2022-06-05 22:05:19 +01:00
osdef2.h.in
pathdef.sh
popupmenu.c patch 9.0.1221: code is indented more than necessary 2023-01-18 18:17:48 +00:00
popupwin.c patch 9.0.1221: code is indented more than necessary 2023-01-18 18:17:48 +00:00
profiler.c patch 9.0.1221: code is indented more than necessary 2023-01-18 18:17:48 +00:00
proto.h patch 9.0.1001: classes are not documented or implemented yet 2022-12-04 20:13:24 +00:00
protodef.h
pty.c patch 9.0.0287: Irix systems no longer exist 2022-08-27 21:24:26 +01:00
quickfix.c patch 9.0.1262: the did_set_string_option function is too long 2023-01-30 13:04:42 +00:00
regexp.c patch 9.0.1221: code is indented more than necessary 2023-01-18 18:17:48 +00:00
regexp.h patch 9.0.0951: trying every character position for a match is inefficient 2022-11-26 11:47:10 +00:00
regexp_bt.c patch 9.0.1234: the code style has to be checked manually 2023-01-22 21:14:53 +00:00
regexp_nfa.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
register.c patch 9.0.1221: code is indented more than necessary 2023-01-18 18:17:48 +00:00
screen.c patch 9.0.1237: code is indented more than necessary 2023-01-23 20:46:21 +00:00
scriptfile.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
search.c patch 9.0.1270: crash when using search stat in narrow screen 2023-01-31 21:13:38 +00:00
session.c patch 9.0.1237: code is indented more than necessary 2023-01-23 20:46:21 +00:00
sha256.c patch 8.2.4402: missing parenthesis may cause unexpected problems 2022-02-16 19:24:07 +00:00
sign.c patch 9.0.1237: code is indented more than necessary 2023-01-23 20:46:21 +00:00
sound.c patch 9.0.1237: code is indented more than necessary 2023-01-23 20:46:21 +00:00
spell.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00: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.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
spellsuggest.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
strings.c patch 9.0.1237: code is indented more than necessary 2023-01-23 20:46:21 +00:00
structs.h patch 9.0.1254: calling a method on an interface does not work 2023-01-28 15:19:40 +00:00
syntax.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
tag.c patch 9.0.1262: the did_set_string_option function is too long 2023-01-30 13:04:42 +00:00
tearoff.bmp
term.c patch 9.0.1276: some mappings with Meta and Shift do not work 2023-02-03 12:28:07 +00:00
termdefs.h patch 9.0.1168: code to enable/disable mouse is not from terminfo/termcap 2023-01-10 12:37:38 +00:00
terminal.c patch 9.0.1245: code is indented more than necessary 2023-01-25 21:05:38 +00: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.0.1245: code is indented more than necessary 2023-01-25 21:05:38 +00:00
textformat.c patch 9.0.1245: code is indented more than necessary 2023-01-25 21:05:38 +00:00
textobject.c patch 9.0.0222: no good reason why text objects are only in larger builds 2022-08-16 20:24:29 +01:00
textprop.c patch 9.0.1245: code is indented more than necessary 2023-01-25 21:05:38 +00:00
time.c patch 9.0.1245: code is indented more than necessary 2023-01-25 21:05:38 +00:00
toolbar.phi
toolcheck
tools.bmp
typemap
typval.c patch 9.0.1245: code is indented more than necessary 2023-01-25 21:05:38 +00:00
ui.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
undo.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
uninstall.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
usercmd.c patch 9.0.1251: checking returned value of ga_grow() is inconsistent 2023-01-27 21:03:12 +00:00
userfunc.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
version.c patch 9.0.1277: cursor may move with autocmd in Visual mode 2023-02-04 10:58:34 +00:00
version.h release version 9.0 2022-06-28 13:44:46 +01:00
vim.h patch 9.0.1238: :runtime completion can be further improved 2023-01-24 12:34:03 +00:00
vim.ico patch 8.2.4545: MS-Windows: the installed icon is low resolution 2022-03-11 15:24:11 +00:00
vim.manifest release version 9.0 2022-06-28 13:44:46 +01:00
vim.rc patch 8.2.2883: MS-Windows manifest file name is misleading 2021-05-24 18:48:27 +02:00
vim.tlb
vim9.h patch 9.0.1254: calling a method on an interface does not work 2023-01-28 15:19:40 +00:00
vim9class.c patch 9.0.1254: calling a method on an interface does not work 2023-01-28 15:19:40 +00:00
vim9cmds.c patch 9.0.1266: error for space before ": type" is inconsistent 2023-01-30 21:12:34 +00:00
vim9compile.c patch 9.0.1266: error for space before ": type" is inconsistent 2023-01-30 21:12:34 +00:00
vim9execute.c patch 9.0.1254: calling a method on an interface does not work 2023-01-28 15:19:40 +00:00
vim9expr.c patch 9.0.1254: calling a method on an interface does not work 2023-01-28 15:19:40 +00:00
vim9instr.c patch 9.0.1260: Coverity warns for possible NULL pointer usage 2023-01-29 14:11:24 +00:00
vim9script.c patch 9.0.1271: using sizeof() and subtract array size is tricky 2023-02-01 13:11:15 +00:00
vim9type.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
vim_alert.ico
vim_error.ico
vim_icon.xbm
vim_info.ico
vim_mask.xbm
vim_quest.ico
viminfo.c patch 9.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
vimrun.c patch 8.2.1507: using malloc() directly 2020-08-22 15:19:18 +02:00
vimtutor Update runtime files 2021-08-29 21:55:35 +02: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.0.1246: code is indented more than necessary 2023-01-26 12:00:00 +00:00
xpm_w32.c
xpm_w32.h

README.md

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
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.0 of the Vim source code.