惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
罗磊的独立博客
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Register - Security
The Register - Security
J
Java Code Geeks
V2EX - 技术
V2EX - 技术
Vercel News
Vercel News
N
News and Events Feed by Topic
腾讯CDC
P
Proofpoint News Feed
N
News | PayPal Newsroom
www.infosecurity-magazine.com
www.infosecurity-magazine.com
爱范儿
爱范儿
O
OpenAI News
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
D
Docker
Y
Y Combinator Blog
博客园 - 聂微东
G
Google Developers Blog
S
Security @ Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
CERT Recently Published Vulnerability Notes
I
Intezer
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Attack and Defense Labs
Attack and Defense Labs
V
Visual Studio Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
W
WeLiveSecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
Scott Helme
Scott Helme
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 最新话题
C
Cybersecurity and Infrastructure Security Agency CISA

Vim

请问怎样在 GVim 中优雅地切换中英文输入法? - V2EX 有没有喜欢折腾 vim 的 - V2EX 请教一下 VIM 怎么做到类似 idea ide 一样识别函数,自动跳转,查看引用? - V2EX 现在 vim 为啥要默认进入鼠标那种模式 在 Vim 中优雅使用 Git:一种高效工作流 - V2EX [插件] step-search.nvim,一个更符合直觉的多关键词聚合搜索工具 - V2EX 请问是否能修改 GVim 标题栏的颜色 - V2EX 插件: nvim-dap-unity - V2EX IdeaVim 新插件推荐: 优化搜索/命令执行框 https://github.com/yelog/ideavim-cmdfloat - V2EX vscodevim 中英文切换异常 - V2EX 写了一个 Neovim 国际化插件 i18n.nvim - V2EX Lazyvim grep 搜索,弹出来的右侧窗口怎么设置内容自动换行? - V2EX 只会:q?关于 Vim 退出方式,不会还有人知道的比我还多吧? - V2EX 求问 VS Code 中使用 Vim 插件, Normal 模式下 Tab 被接管了(Insert 模式下可以),没办法接受 AI 的代码提示,有无解决方法? - V2EX 不知道为什么存在的 vim 快捷键 - V2EX 有无公司要求开发用 Vim 编辑器? - V2EX coc.nvim 近期的主要更新 - V2EX vim 执行外部 shell 命令时卡顿,求解决方式 - V2EX 十分尴尬,被导师推荐去使用 JetBrains - V2EX Nvim 输入法的自动切换 - V2EX 写了一个 flash.nvim on ideavim 的插件 vim-flash, 有兴趣的可以试试 - V2EX nvim 无法粘贴到转存到系统剪切板 - V2EX The ObjectSense Programming Language : An object-oriented reincarnation of VimL - V2EX nvim 复制改键 - V2EX 使用 Vim 的时候遇到了一点问题 - V2EX vim 无法设置无名寄存器作为系统剪切板 - V2EX awesome-nvim-conf:中文用户 nvim 配置仓库 - V2EX 请问有办法将 nvim 当成临时草稿本使用吗? - V2EX NeoVim 可以实现远程开发么? - V2EX Leaderf git: 在 vim 中优雅高效的使用 git - V2EX 想找一个好用的 vim 剪切板的快捷键 - V2EX 关于 vim 中一次复制粘贴的询问 - V2EX 配置 nvim-lsp 自动补全有点复杂 - V2EX 今天我去 neovim 官网找图标的时候, 顺手点了一点 donate 的 btc 地址 - V2EX 轮子更新: NeoVim 主题模板 - V2EX 用了一段时间 neovim,感觉良好 - V2EX 鼠标选中文字,输入字符时能直接覆盖掉选中的文字 - V2EX lunarvim 如何修改提示的位置 - V2EX vim 有没有插件像 nvim 那样每个 buffer 右上角都有关闭按钮 - V2EX vim 的字体配色是怎么设置的? - V2EX VSCode vim 插件在 o 换行后,退出插入模式会丢失所有缩进的问题 - V2EX 各位用 vim 键位的, 是怎么解决 esc 频繁按键的问题的呢? - V2EX 有用 nvim 写 protobuf 的吗,大家用哪个 lsp ? - V2EX 用 vim/nvim 写 Python 用什么插件? - V2EX 安利一下我的键盘修改按键,解决小拇指按 shift 的困境 - V2EX VIM & Python - V2EX Vim 上远程开发有什么方案? - V2EX 除了使用方向键 vim insert mode 下如何快速前进一个字符? - V2EX wincap.vim 让你的 gvim 标题栏应用 buffer 的背景色 - V2EX (补图) vim tab 和 buffers 问题 - V2EX
请教 Debian 12.6 的 vi 和 vim.tiny 指向同一文件却执行效果不同疑问 - V2EX
xlinux · 2024-08-31 · via Vim

执行 vi 和执行 vim.tiny 为什么是两种不同的模式? 这两个不是指向的是同一个文件 /usr/bin/vim.tiny 吗? 不同的表现在于:

  • 无法使用退格键 backspace
  • 方向键变字母

以下是系统的一些信息:

root@debian:~# whereis vi
vi: /usr/bin/vi /usr/share/man/man1/vi.1.gz

root@debian:~# whereis vim.tiny 
vim.tiny: /usr/bin/vim.tiny
root@debian:~# ls -la /usr/bin/ | grep vi
-rwxr-xr-x  1 root root      14560 Sep 16  2023 dbus-update-activation-environment
lrwxrwxrwx  1 root root         23 May  4  2023 rview -> /etc/alternatives/rview
-rwxr-xr-x  1 root root      18808 Jun 16 05:44 systemd-detect-virt
lrwxrwxrwx  1 root root         20 May  4  2023 vi -> /etc/alternatives/vi
lrwxrwxrwx  1 root root         22 May  4  2023 view -> /etc/alternatives/view
-rwxr-xr-x  1 root root    1629584 May  4  2023 vim.tiny
root@debian:~# ls -la /etc/alternatives/ | grep vi
lrwxrwxrwx  1 root root   17 May  4  2023 ex -> /usr/bin/vim.tiny
lrwxrwxrwx  1 root root   28 May  4  2023 ex.1.gz -> /usr/share/man/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.da.1.gz -> /usr/share/man/da/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.de.1.gz -> /usr/share/man/de/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.it.1.gz -> /usr/share/man/it/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 ex.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz
lrwxrwxrwx  1 root root   17 May  4  2023 rview -> /usr/bin/vim.tiny
lrwxrwxrwx  1 root root   17 May  4  2023 vi -> /usr/bin/vim.tiny
lrwxrwxrwx  1 root root   28 May  4  2023 vi.1.gz -> /usr/share/man/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.da.1.gz -> /usr/share/man/da/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.de.1.gz -> /usr/share/man/de/man1/vim.1.gz
lrwxrwxrwx  1 root root   17 May  4  2023 view -> /usr/bin/vim.tiny
lrwxrwxrwx  1 root root   28 May  4  2023 view.1.gz -> /usr/share/man/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.da.1.gz -> /usr/share/man/da/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.de.1.gz -> /usr/share/man/de/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.it.1.gz -> /usr/share/man/it/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 view.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.it.1.gz -> /usr/share/man/it/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz
lrwxrwxrwx  1 root root   31 May  4  2023 vi.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz
root@debian:~# ls -la /etc/vim
total 16
drwxr-xr-x  2 root root 4096 Aug 31 05:17 .
drwxr-xr-x 69 root root 4096 Aug 30 23:37 ..
-rw-r--r--  1 root root 2553 May  4  2023 vimrc
-rw-r--r--  1 root root  662 May  4  2023 vimrc.tiny
root@debian:~# cat /etc/vim/vimrc
" $VIMRUNTIME refers to the versioned system directory where Vim stores its
" system runtime files -- /usr/share/vim/vim<version>.
"
" Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
" This happens after /etc/vim/vimrc(.local) are loaded, so it will override
" any settings in these files.
"
" If you don't want that to happen, uncomment the below line to prevent
" defaults.vim from being loaded.
" let g:skip_defaults_vim = 1
"
" If you would rather _use_ default.vim's settings, but have the system or
" user vimrc override its settings, then uncomment the line below.
" source $VIMRUNTIME/defaults.vim

" All Debian-specific settings are defined in $VIMRUNTIME/debian.vim and
" sourced by the call to :runtime you can find below.  If you wish to change
" any of those settings, you should do it in this file or
" /etc/vim/vimrc.local, since debian.vim will be overwritten everytime an
" upgrade of the vim packages is performed. It is recommended to make changes
" after sourcing debian.vim so your settings take precedence.

runtime! debian.vim

" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'.  Setting 'compatible' changes
" numerous options, so any other options should be set AFTER changing
" 'compatible'.
"set compatible

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
"syntax on

" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
"set background=dark

" Uncomment the following to have Vim jump to the last position when
" reopening a file
"au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif

" Uncomment the following to have Vim load indentation rules and plugins
" according to the detected filetype.
"filetype plugin indent on

" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
"set showcmd		" Show (partial) command in status line.
"set showmatch		" Show matching brackets.
"set ignorecase		" Do case insensitive matching
"set smartcase		" Do smart case matching
"set incsearch		" Incremental search
"set autowrite		" Automatically save before commands like :next and :make
"set hidden		" Hide buffers when they are abandoned
"set mouse=a		" Enable mouse usage (all modes)

" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif
root@debian:~# cat /etc/vim//vimrc.tiny 
" Vim configuration file, in effect when invoked as "vi". The aim of this
" configuration file is to provide a Vim environment as compatible with the
" original vi as possible. Note that ~/.vimrc configuration files as other
" configuration files in the runtimepath are still sourced.
" When Vim is invoked differently ("vim", "view", "evim", ...) this file is
" _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are.

" Debian system-wide default configuration Vim
set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim90,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after

set compatible

" vim: set ft=vim: