Thus, when feedkeys() is called in callback, the input of feedkeys() must be handled in gui_mch_wait_for_chars() but MacVim does not so and simply waits for input.īoth of these have checked input_available(), which returns TRUE if feedkeys() gave input, in gui_mch_wait_for_chars ().I've always been a little puzzled by people who use a file-drawer or file-list or similar addon with Vim, and I now I think I know why: I'm guessing most of these people have Vim open as their One Tool, much like another programmer might have Xcode or Visual Studio open as their One Tool, and they want to get everything done in it.Īt work, I usually have at least two windows open at all times: Vim full-screen on one monitor, a terminal full-screen on the other-or sometimes one terminal taking up most of the screen and another smaller terminal tailing a logfile. So gui_mch_wait_for_chars() waits for input forever. When invoked timer callback in check_due_timer(), due_time is set to -1. The reason is, GUI has not check input buffer typebuf after timer callback.
Keying, on TUI shows "abc" promptly, but on GUI MacVim doesn't show it until other any input (keyboard or mouse cursor moved) given. Nnoremap : call TimerStart() fu ! TimerStart()
L/usr/local/lib -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm -lncurses -liconv -framework Cocoa -pagezero_size 10000 -image_base 100000000 -L/usr/local/opt/luajit/lib -lluajit-5.1 -fstack-protector -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl -L/usr/local/opt/python3/Frameworks/amework/Versions/3.5/lib/python3.5/config-3.5m -lpython3.5m -framework CoreFoundation -F/System/Library/Frameworks -framework Tcl -framework CoreFoundation -framework Ruby Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 +ex_extra -mouse_gpm -sun_workshop -xterm_saveĭefaults file: "$VIMRUNTIME/defaults.vim"įall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"Ĭompilation: clang -c -I. +emacs_tags +mouseshape +startuptime -xsmp +digraphs +mksession +scrollbind -xfontset +dialog_con_gui +lua +rightleft +writebackup +cursorbind +listcmds +quickfix +wildmenu +cmdline_info +lambda +postscript +visual +cmdline_hist +keymap +persistent_undo +virtualedit +cmdline_compl +jumplist +perl +vertsplit +clipboard +job +path_extra +user_commands +clientserver +insert_expand +packages +transparency
+byte_offset -gettext +netbeans_intg +timers ++builtin_terms +fullscreen -mzscheme +textobjects +browse +fork() +multi_lang +termresponse +balloon_eval -footer +multi_byte +terminfo +autocmd +folding +mouse_xterm +termguicolors +acl +find_in_path -mouse_sysmouse -tag_any_white Run `brew linkapps macvim` to symlink these to /Applications. usr/local/Cellar/macvim/8.0-114 (2,107 files, 33.6M) *īuilt from source on at 09:20:23 with: -with-python3 -without-python -with-lua -with-luajitīuild with a custom Python 2 instead of the Homebrew version. usr/local/Cellar/macvim/8.0-113 (2,102 files, 33.5M)īuilt from source on at 12:33:22 with: -with-python3 -without-python -with-lua -with-luajit