退格键在Vim/vi中不起作用
发布时间:2020-12-15 16:18:40 所属栏目:安全 来源:网络整理
导读:我只是对.vimrc文件和.bash_aliases文件做了一些更改,从那时我不能删除字用退格键。 我的.vimrc文件有: set nocompatibleset numberset incsearchset autoindentset rulerset autowriteset smarttabset linebreakset spellset etset titleset mouse=vset h
我只是对.vimrc文件和.bash_aliases文件做了一些更改,从那时我不能删除字用退格键。
我的.vimrc文件有: set nocompatible set number set incsearch set autoindent set ruler set autowrite set smarttab set linebreak set spell set et set title set mouse=v set history=50 set tabstop=4 set matchtime=2 set matchpairs+=<:> syntax enable filetype plugin indent on filetype indent on set sw=4 map <f2> :w|!python % hi SpellBad ctermfg=000 guifg=#000 和我的.bash_aliases文件有两行为Vim: alias vim="vim -c 'startinsert' -u ~/.vim/.vimrc" alias vi="vi -c 'startinsert' -u ~/.vim/.vimrc" 我的?/ .vim目录没有一个插件或脚本,所以没有任何机会,插件会导致这一点。 ?/ .vim / .vimrc是一个符号链接。实际的.vimrc文件在?/ vimrc /目录中,这是一个git存储库。
要允许在插入模式下(包括自动插入的缩进,换行符和插入开始)的所有内容的后退,请设置以下选项:
:set backspace=indent,eol,start 要么 :set backspace=2 "compatible with version 5.4 and earlier 默认情况下,此选项为空,不允许您退出上述事项。这是标准的Vi行为。 见 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- scala – Spark SQL嵌套withColumn
- Unix/Linux程序设计之getopt函数浅谈
- angular2项目教程-微型Blog系统4
- bash – 如何阻止VI重叠并隐藏命令行输出的最后一页?
- webservice 中 String[], List , ArrayOfString的处理!
- 为什么Scala中的相同算法比C#慢得多?以及如何让它更快?
- scala – orElse如何处理PartialFunctions
- scala – 如何强制Logger.debug输出在Play!框架specs2测试
- 从Angular 4中的选择选项中获取价值
- twitter-bootstrap – 取消固定Twitter引导程序的滚动词缀