顯示版本號及其他資訊
:version
範例
一般模式 0 / 3命令列模式 1 / 3等待按 Enter 繼續 2 / 3一般模式 3 / 3顯示版本號及其他資訊。
Vim 訊息
沒有內容
- 最後狀態訊息
earlier example message- 最後一個警告
範例變數
- g:exampleCount
1
指令輸出
沒有內容
指令已輸入。按 Enter 執行。
Vim 訊息
沒有內容
- 最後狀態訊息
earlier example message- 最後一個警告
範例變數
- g:exampleCount
1
指令輸出
沒有內容
已顯示指令輸出,按 Enter 繼續
Vim 訊息
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)
- 最後狀態訊息
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)- 最後一個警告
範例變數
- g:exampleCount
1
指令輸出
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)
macOS version w/o darwin feat. - arm64
Included patches: 1-1341
Compiled by VimRecall verification
Huge version without GUI. Features included (+) or not (-):
+acl +find_in_path -mouseshape -tag_old_static
+arabic +float +multi_byte -tcl
+autochdir +folding +multi_lang +termguicolors
+autocmd -footer -mzscheme +terminal
-autoservername +fork() +netbeans_intg +terminfo
-balloon_eval -gettext +num64 +termresponse
+balloon_eval_term -hangul_input +packages +textobjects
-browse +iconv -pango +textprop
++builtin_terms -image +path_extra +timers
+byte_offset -image_popup -perl +title
+channel +insert_expand +persistent_undo -toolbar
+cindent +ipv6 +popupwin +user_commands
+clientserver +job +postscript +vartabs
-clipboard +jumplist +printer +vertsplit
+clipboard_provider +keymap +profile +vim9script
+cmdline_compl +lambda -python +viminfo
+cmdline_hist +langmap -python3 +virtualedit
+cmdline_info +libcall +quickfix +visual
+comments +linebreak +reltime +visualextra
+conceal +lispindent +rightleft +vreplace
+cryptv +listcmds -ruby -wayland
+cscope +localmap +scrollbind -wayland_clipboard
+cursorbind -lua +signs +wildignore
+cursorshape +menu +smartindent +wildmenu
+dialog_con +mksession +socketserver +windows
+diff +modify_fname -sodium +writebackup
+digraphs +mouse -sound -X11
-dnd +mouse_dec +spell -xattr
-ebcdic -mouse_gpm +startuptime -xfontset
+emacs_tags -mouse_jsbterm +statusline -xim
+eval +mouse_netterm -sun_workshop -xpm
+ex_extra +mouse_sgr +syntax -xsmp
+extra_search -mouse_sysmouse +tabpanel -xterm_clipboard
-farsi +mouse_urxvt -tag_any_white -xterm_save
+file_in_path +mouse_xterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv已確認輸出,回到一般模式
Vim 訊息
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)
- 最後狀態訊息
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)- 最後一個警告
範例變數
- g:exampleCount
1
指令輸出
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)
macOS version w/o darwin feat. - arm64
Included patches: 1-1341
Compiled by VimRecall verification
Huge version without GUI. Features included (+) or not (-):
+acl +find_in_path -mouseshape -tag_old_static
+arabic +float +multi_byte -tcl
+autochdir +folding +multi_lang +termguicolors
+autocmd -footer -mzscheme +terminal
-autoservername +fork() +netbeans_intg +terminfo
-balloon_eval -gettext +num64 +termresponse
+balloon_eval_term -hangul_input +packages +textobjects
-browse +iconv -pango +textprop
++builtin_terms -image +path_extra +timers
+byte_offset -image_popup -perl +title
+channel +insert_expand +persistent_undo -toolbar
+cindent +ipv6 +popupwin +user_commands
+clientserver +job +postscript +vartabs
-clipboard +jumplist +printer +vertsplit
+clipboard_provider +keymap +profile +vim9script
+cmdline_compl +lambda -python +viminfo
+cmdline_hist +langmap -python3 +virtualedit
+cmdline_info +libcall +quickfix +visual
+comments +linebreak +reltime +visualextra
+conceal +lispindent +rightleft +vreplace
+cryptv +listcmds -ruby -wayland
+cscope +localmap +scrollbind -wayland_clipboard
+cursorbind -lua +signs +wildignore
+cursorshape +menu +smartindent +wildmenu
+dialog_con +mksession +socketserver +windows
+diff +modify_fname -sodium +writebackup
+digraphs +mouse -sound -X11
-dnd +mouse_dec +spell -xattr
-ebcdic -mouse_gpm +startuptime -xfontset
+emacs_tags -mouse_jsbterm +statusline -xim
+eval +mouse_netterm -sun_workshop -xpm
+ex_extra +mouse_sgr +syntax -xsmp
+extra_search -mouse_sysmouse +tabpanel -xterm_clipboard
-farsi +mouse_urxvt -tag_any_white -xterm_save
+file_in_path +mouse_xterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv操作前後
操作前
Vim 訊息
沒有內容
- 最後狀態訊息
earlier example message- 最後一個警告
範例變數
- g:exampleCount
1
指令輸出
沒有內容
操作後
Vim 訊息
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)
- 最後狀態訊息
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)- 最後一個警告
範例變數
- g:exampleCount
1
指令輸出
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled Nov 15 2026 11:46:06)
macOS version w/o darwin feat. - arm64
Included patches: 1-1341
Compiled by VimRecall verification
Huge version without GUI. Features included (+) or not (-):
+acl +find_in_path -mouseshape -tag_old_static
+arabic +float +multi_byte -tcl
+autochdir +folding +multi_lang +termguicolors
+autocmd -footer -mzscheme +terminal
-autoservername +fork() +netbeans_intg +terminfo
-balloon_eval -gettext +num64 +termresponse
+balloon_eval_term -hangul_input +packages +textobjects
-browse +iconv -pango +textprop
++builtin_terms -image +path_extra +timers
+byte_offset -image_popup -perl +title
+channel +insert_expand +persistent_undo -toolbar
+cindent +ipv6 +popupwin +user_commands
+clientserver +job +postscript +vartabs
-clipboard +jumplist +printer +vertsplit
+clipboard_provider +keymap +profile +vim9script
+cmdline_compl +lambda -python +viminfo
+cmdline_hist +langmap -python3 +virtualedit
+cmdline_info +libcall +quickfix +visual
+comments +linebreak +reltime +visualextra
+conceal +lispindent +rightleft +vreplace
+cryptv +listcmds -ruby -wayland
+cscope +localmap +scrollbind -wayland_clipboard
+cursorbind -lua +signs +wildignore
+cursorshape +menu +smartindent +wildmenu
+dialog_con +mksession +socketserver +windows
+diff +modify_fname -sodium +writebackup
+digraphs +mouse -sound -X11
-dnd +mouse_dec +spell -xattr
-ebcdic -mouse_gpm +startuptime -xfontset
+emacs_tags -mouse_jsbterm +statusline -xim
+eval +mouse_netterm -sun_workshop -xpm
+ex_extra +mouse_sgr +syntax -xsmp
+extra_search -mouse_sysmouse +tabpanel -xterm_clipboard
-farsi +mouse_urxvt -tag_any_white -xterm_save
+file_in_path +mouse_xterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv從一般模式開始。畫面上的訊息與變數值都取自這次獨立執行的 Vim,可與指令說明對照。顯示的版本、功能旗標與建置金資料描述了已固定的 Vim 9.2.1341 驗證建置。此例使用 80 欄、24 行的終端機,並設定 cmdheight=1 和 nomore。第一次按 Enter 會執行指令。顯示輸出後,Vim 會提示再按一次 Enter。再按一次 Enter,回到一般模式。
one two
three four
five six
keep游標位於第 1 行,第 1 欄