vim-tiny 有什么功能?

vim-tiny 有什么功能?

因此,vim-tinyUbuntu 默认安装了精简版。我不介意使用它,但我找不到文档,而且我习惯的普通 Vim 中的大多数命令都不起作用。到目前为止,我发现了这一点,:n:N在缓冲区和:split屏幕分割之间切换(但Ctrl- W+S不起作用),:close关闭分割,并且Ctrl- W+W在分割之间跳跃。

我还遗漏了哪些其他命令?

答案1

11.10日:

$ vim.tiny --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct  6 2011 10:32:12)
Included patches: 1-154
Modified by [email protected]
Compiled by buildd@
Small version without GUI.  Features included (+) or not (-):
-arabic -autocmd -balloon_eval -browse +builtin_terms -byte_offset -cindent 
-clientserver -clipboard -cmdline_compl +cmdline_hist -cmdline_info -comments 
-conceal -cryptv -cscope -cursorbind -cursorshape -dialog -diff -digraphs -dnd 
-ebcdic -emacs_tags -eval -ex_extra -extra_search -farsi -file_in_path 
-find_in_path -float -folding -footer +fork() -gettext -hangul_input +iconv 
-insert_expand +jumplist -keymap -langmap -libcall -linebreak -lispindent 
-listcmds -localmap -lua -menu -mksession -modify_fname -mouse -mouse_dec 
-mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse -mouse_xterm 
+multi_byte -multi_lang -mzscheme -netbeans_intg -osfiletype -path_extra -perl 
-persistent_undo -printer -profile -python -python3 -quickfix -reltime 
-rightleft -ruby -scrollbind -signs -smartindent -sniff -startuptime 
-statusline -sun_workshop -syntax -tag_binary -tag_old_static -tag_any_white 
-tcl +terminfo -termresponse -textobjects -title -toolbar -user_commands 
-vertsplit -virtualedit +visual -visualextra -viminfo -vreplace +wildignore 
-wildmenu +windows +writebackup -X11 +xfontset -xim -xsmp -xterm_clipboard 
-xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -Wall -g -O2 -DTINY_VIMRC -D_FORTIFY_SOURCE=1      
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,--as-needed -o vim    -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo  -lselinux -ldl

仅启用了 12 个功能(共 120 个):

+builtin_terms      Some terminals supported
+cmdline_hist       Command line history
+fork()             Shell commands are forked
+iconv              Extra encoding conversions besides utf8<->latin1
+jumplist           jumplist history, 
                    So you can go back/forward with Ctrl-O/Ctrl-I
+multi_byte         Multibyte characters
+terminfo           Use terminfo instead of termcap
+visual             Visual mode supported (but no blockwise visual mode)
+wildignore         Allow wildcard patterns, to specify files to
                    ignore during filename completion
+windows            Support more than one buffer window
+writebackup        Backup files before overwriting (this either
                    provides this option, or defaults it to on)
+xfontset           X fontset support

这些描述基于功能列表链接由@Caesium 发布。

缺少键绑定等可能是因为你在运行 vimvi 兼容模式:set nocompatible- 您可以通过在 vim 中执行或添加到文件set nocompatible中来关闭此功能.vimrc

我确实尝试过,在兼容模式下Ctrl-W s运行时确实出现了拆分/usr/bin/vim.tiny,所以这可能不是你的问题。但我不确定那种情况下会发生什么。也许可以尝试确保文件中没有任何内容.vimrc会阻止其工作。

答案2

干得好: http://vimdoc.sourceforge.net/htmldoc/various.html#+feature-list

引用自:ve[rsion] ..

The first column shows the smallest version in which they are included:
T   tiny
S   small
N   normal
B   big
H   huge

我实际上没有看到任何标记的“T”,所以看起来你什么都没得到。另一个答案“它可能只是关于 vi”可能不会那么遥远;)

相关内容