如何取消vim的智能缩进?
解决方案:切换到paste模式。
在粘贴数据之前,输入下面指定开启paste模式
:set paste
粘贴完毕后,输入下面指定关闭paste模式
:set nopaste
:set autoindent! 或者 :set noautoindent ,不行的话再试试
:set nocindent :set nosmartindentlinux中 vi / vim显示行号或取消行号命令
1. 显示行号
:set number
或者
:set nu
2. 取消行号显示
:set nu!
3. 每次打开都显示行号
修改vi ~/.vimrc 文件,添加:set numbervim insert VISUAL模式
网上解法:
普通模式下输入“:set mouse-=a”,有效
.vimrc中添加:
if has('mouse')
set mouse-=a
endif文档更新时间: 2023-07-28 06:18 作者:月影鹏鹏