vim多行缩进
2024-09-08 14:00:45
1、首先设置vim缩进空格
vim /etc/vim/vimrc 或者vim /etc/vimrc,添加一下文字
set smartindent set shiftwidth=4 # 缩进四个空格
# 注释符号,根据需要设置 #:set tabstop=4 设定tab宽度为4个字符 #:set shiftwidth=4 设定自动缩进为4个字符 #:set expandtab 用space替代tab的输入 #:set noexpandtab 不用space替代tab的输入
2、打开需要设置 的文件
按Esc进去命令行模式 光标移动到开头,按shift+v,然后按上下方向键选择多行 按shift + < 向前移,按shift + > 向后移
最新文章
- iOS流行的开源代码库
- html+css基础知识总结
- Android笔记:实现点击事件
- Nginx reopen reload作用及工作过程
- XML的解析方式(Java)
- rsync 无密码 传输
- PHPExcel上传sae遇到: -1:fail to get xml content
- 说说QQ空间SEO
- Java Dom解析xml
- xmlplus 组件设计系列之九 - 树(Tree)
- org.apache.commons.lang下的工具类
- JS对象深度克隆
- String,StringBuffer,StringBuilder的区别
- Mysql5.7数据导出提示--secure-file-priv选项问题的解决方法
- bzoj3730 震波 [动态点分治,树状数组]
- memoization提升递归效率
- 【Java并发编程】9、非阻塞同步算法与CAS(Compare and Swap)无锁算法
- 线程池ThreadPoolExecutor整理
- python-类里面各种方法的学习补充
- decimal, float 和double
热门文章
- Cannot add middleware after an application has started
- chia P图安装
- python常用数据结构模块--collections
- django项目初创建报错TypeError: unsupported operand type(s) for /: &#39;str&#39; and &#39;str&#39;
- 实现ViewPager一次滑动多页(保持居中)
- 2021年RT-Thread开发者大会
- 打包exe
- re的finditer()
- 测试elasticsearch保存时报找不到类型的错误
- Python中用eval将字符串转换为字典时候出错:NameError: name ‘null’ is not defined的解决方法